Rodrigo Kumpera [Fri, 30 May 2014 01:51:29 +0000 (21:51 -0400)]
[boehm] Implement the finalization extension API.
Rodrigo Kumpera [Mon, 19 May 2014 15:00:40 +0000 (11:00 -0400)]
[gc] Add finalizer API, implemented only on sgen.
The new finalizer API allows an embedder to be notified during a collector
when an object is queued for finalization.
This is a VERY low level interface, as this is called with the world stopped, so the
code MUST be async safe. If you don't precisely know what that means, don't use it.
Zoltan Varga [Fri, 30 May 2014 00:57:48 +0000 (02:57 +0200)]
[jit] Applied patch from Vladimir Kargov <kargov@gmail.com>. Fix a local register allocation problem involving global registers and x86 register constraints.
Alexis Christoforides [Thu, 29 May 2014 22:09:05 +0000 (18:09 -0400)]
Bump 'master' branch version.
Sebastien Pouliot [Thu, 29 May 2014 19:29:52 +0000 (15:29 -0400)]
[mobile] Add support for Environment.SetEnvironmentVariable in the mobile profile (e.g. iOS)
Zoltan Varga [Thu, 29 May 2014 19:08:20 +0000 (21:08 +0200)]
[sdb] Avoid clearning event requests if they reference an assembly which is unloaded. Instead, remove the assembly reference from the event request so it stays active. Fixes #19924.
Marek Safar [Thu, 29 May 2014 15:54:39 +0000 (17:54 +0200)]
[verifier] Set correctly stack type based on constrained type
Marek Safar [Thu, 29 May 2014 12:32:27 +0000 (14:32 +0200)]
[mcs] If the overriding property is sealed, then the overridden accessors cannot be inaccessible
Marek Safar [Thu, 29 May 2014 12:18:34 +0000 (14:18 +0200)]
Fixes build with newer mcs
Marek Safar [Thu, 29 May 2014 10:52:09 +0000 (12:52 +0200)]
[mcs] Use constrained prefix for enum calls too
Marek Safar [Thu, 29 May 2014 10:03:14 +0000 (12:03 +0200)]
[verifier] Fix constrained type unwrap for enum types. Fixes #18371
Marek Safar [Thu, 29 May 2014 07:49:09 +0000 (09:49 +0200)]
Add System.ServiceModel.Security assembly. Fixes #20108
Zoltan Varga [Thu, 29 May 2014 00:01:34 +0000 (02:01 +0200)]
Merge pull request #1067 from esdrubal/bug19862
Removed NET_2_1 conditional blocks from FileInfo. Fixes #19862.
Zoltan Varga [Wed, 28 May 2014 23:07:51 +0000 (01:07 +0200)]
[amd64] Simplify mono_arch_handle_altstack_exception () by passing a MonoContext on the stack instead of an os specific sigctx structure which required special handling and broke when _XOPEN_SOURCE was defined.
Jeffrey Stedfast [Wed, 28 May 2014 18:14:48 +0000 (14:14 -0400)]
[Mono.Debugger.Soft] minor code cleanup
Jeffrey Stedfast [Wed, 28 May 2014 17:59:27 +0000 (13:59 -0400)]
Merge pull request #1048 from DavidKarlas/cacheThreadsAndBulkFetch
[Mono.Debugger.Soft] Caching threads and bulk fetching StackFrames
marcos henrich [Wed, 28 May 2014 17:24:16 +0000 (18:24 +0100)]
Removed NET_2_1 conditional blocks from FileInfo. Fixes #19862.
Marek Safar [Wed, 28 May 2014 15:59:47 +0000 (17:59 +0200)]
[mcs] Fix betterness logic for default vs params parameters. Fixes #19754
Marek Safar [Wed, 28 May 2014 14:34:37 +0000 (16:34 +0200)]
Tests update
Sebastien Pouliot [Wed, 28 May 2014 14:33:47 +0000 (10:33 -0400)]
[System] Ensure pinvoke into OXS/iOS CFNetwork framework (for proxy support) are 64bits safe
Marek Safar [Wed, 28 May 2014 14:23:01 +0000 (16:23 +0200)]
[mcs] Flow analysis of binary expressions not using logical operators. Fixes #20086
Sebastien Pouliot [Wed, 28 May 2014 13:49:03 +0000 (09:49 -0400)]
[System] Ensure pinvoke into OXS/iOS Security framework are 64bits safe
Sebastien Pouliot [Wed, 28 May 2014 13:06:36 +0000 (09:06 -0400)]
[corlib][ios] Fix 'write' pinvoke declaration to be 64bits safe
David Karlaš [Wed, 28 May 2014 10:58:38 +0000 (12:58 +0200)]
Changed API for fetching StackFrames in bulk on multiple threads ThreadMirror.FetchFrames instead of automatically on VirtualMachine.GetThreads
Marek Safar [Wed, 28 May 2014 08:59:31 +0000 (10:59 +0200)]
[mcs] Emit unmanaged version info from AssemblyFileVersion. Fixes #20057
Zoltan Varga [Tue, 27 May 2014 22:09:47 +0000 (00:09 +0200)]
[runtime] Call mono_threads_join_threads () to prevent running out of threads when the finalizer threads becomes blocked/backlogged.
Zoltan Varga [Tue, 27 May 2014 20:36:37 +0000 (22:36 +0200)]
[llvm] Fix the loadable llvm build.
Rodrigo Kumpera [Tue, 27 May 2014 19:38:49 +0000 (15:38 -0400)]
[runtime] Add a test for the type loading changes.
Rodrigo Kumpera [Tue, 27 May 2014 19:36:42 +0000 (15:36 -0400)]
[runtime] Ensure reflection-based assembly load has a basedir set.
When loading assemblies, we must ensure that a basedir is provided otherwise
things like custom attributes and Type.GetType won't be able to load sibling
assemblies when basedir is not the same of the domain.
Miguel de Icaza [Tue, 27 May 2014 18:59:25 +0000 (14:59 -0400)]
[build] Address the System.Configuration test problem
The compiler seems to ignore reference assemblies with a full path when the
-lib: directive is passed, so things like:
-lib:FOO -r:BAR/bar.dll
Would resolve bar.dll to FOO/bar.dll, instead of BAR/bar.dll.
This is a problem with the test suite as it needs to reference the
final build of System.Configuration from $(the_libdir_base) and not
the intermediate step.
To work around this issue, we introduce "test_remove" variable that is
a piece of text that will be removed from the TEST_COMPILE variable
when this is evaluated.
This means that it gets CSCOMPILE and then it removes the bits that we
are not interested in.
Zoltan Varga [Tue, 27 May 2014 18:41:57 +0000 (20:41 +0200)]
[llvm] Fix support for native types.
Mark Probst [Tue, 27 May 2014 17:46:32 +0000 (10:46 -0700)]
[sgen] Remove unnecessary newline from warning.
Mark Probst [Tue, 27 May 2014 17:45:58 +0000 (10:45 -0700)]
[sgen] Fix for ridiculously small nurseries.
Joao Matos [Tue, 27 May 2014 16:29:45 +0000 (17:29 +0100)]
Fixed TLAB_ACCESS_INIT usages in MSVC by moving the macro expansions to the start of each block.
Joao Matos [Tue, 27 May 2014 15:57:19 +0000 (16:57 +0100)]
Revert "Fixed TLAB_ACCESS_INIT usages in MSVC by declaring the variables explicitly at the start of each block."
This will be fixed in a slightly different way.
This reverts commit
aa7ab303bae3de8e8401cbbb4dbc92964347994e.
Joao Matos [Tue, 27 May 2014 15:55:48 +0000 (16:55 +0100)]
Replaced "__asm call $+5" pattern to get the IP with a label.
This was suggested by Kumpera as a work-around for the lack of support for $ in clang-cl.
Marek Safar [Tue, 27 May 2014 16:14:02 +0000 (18:14 +0200)]
[corlib] Disable test
Marek Safar [Tue, 27 May 2014 15:33:52 +0000 (17:33 +0200)]
[mcs] More of correct error propagation
Rodrigo Kumpera [Tue, 27 May 2014 15:04:08 +0000 (11:04 -0400)]
[System.Configuration] Temporary fix for system.configuration test suite.
Marek Safar [Tue, 27 May 2014 15:04:24 +0000 (17:04 +0200)]
[system] Fix warnings
Marek Safar [Tue, 27 May 2014 14:14:14 +0000 (16:14 +0200)]
[mcs] Fix expression tree conversion type for lifted enum equality comparisons. Fixes #19938
Zoltan Varga [Tue, 27 May 2014 13:29:04 +0000 (15:29 +0200)]
[arm64] Fix mono_strtod ().
Marek Safar [Tue, 27 May 2014 12:37:17 +0000 (14:37 +0200)]
[mcs] Report error when named argument for param parameter is given but not all formal parameters are provided. Fixes #19878
Alex Rønne Petersen [Tue, 27 May 2014 10:18:42 +0000 (12:18 +0200)]
Merge pull request #1062 from sethjackson/sem_timedwait
OpenBSD has sem_timedwait().
Marek Safar [Tue, 27 May 2014 08:46:54 +0000 (10:46 +0200)]
[mcs] Unify reachable label lookup. Fixes #19887
Marek Safar [Tue, 27 May 2014 07:32:55 +0000 (09:32 +0200)]
Merge pull request #1060 from rolfbjarne/logical-name-in-embedded-resources
[Microsoft.Build.Tasks] Add support for LogicalName in EmbeddedResources...
Atsushi Eno [Tue, 27 May 2014 05:08:58 +0000 (14:08 +0900)]
[ms.build] use appropriate ProjectCollection so that it can build the projects with appropriate settings.
Now a solution turns into a project with "BuildingSolutionFile" property
which is assigned by SolutionParser and subsequently gets _ExplicitReference
that is to store path to mscorlib.dll and thence projects build.
Atsushi Eno [Tue, 27 May 2014 03:53:15 +0000 (12:53 +0900)]
[ms.build] follow xbuild to use version 12.0.
Atsushi Eno [Tue, 27 May 2014 03:52:52 +0000 (12:52 +0900)]
[ms.build] Add msbuild.rsp.
Seth Jackson [Tue, 27 May 2014 01:43:35 +0000 (21:43 -0400)]
OpenBSD has sem_timedwait().
This change released under the MIT license with permission from the original
author Robert Nagy.
Sebastien Pouliot [Tue, 27 May 2014 00:02:24 +0000 (20:02 -0400)]
[Mono.Security] Add new test files (form previous PR) to the build
Sebastien Pouliot [Tue, 27 May 2014 00:00:43 +0000 (20:00 -0400)]
Merge pull request #1057 from lextm/master
[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and Subj...
Zoltan Varga [Mon, 26 May 2014 23:50:32 +0000 (01:50 +0200)]
Merge pull request #1061 from sethjackson/L_cuserid
L_cuserid was removed from OpenBSD.
Joao Matos [Mon, 26 May 2014 22:42:09 +0000 (23:42 +0100)]
Replaced C99 variable-length array with an alloca to work with MSVC.
Joao Matos [Mon, 26 May 2014 22:40:30 +0000 (23:40 +0100)]
Fixed SGEN_HASH_TABLE_INIT usages to work in MSVC.
Joao Matos [Mon, 26 May 2014 22:39:34 +0000 (23:39 +0100)]
Fixed TLAB_ACCESS_INIT usages in MSVC by declaring the variables explicitly at the start of each block.
Sebastien Pouliot [Mon, 26 May 2014 21:27:26 +0000 (17:27 -0400)]
[System.ServiceModel.Web] Fix issue with types explicitly implementing IDictionary or IDictionary<,>
Issue: The previous code, with new tests [1], failed when the linker was
enabled.
That was caused because the code looks for the Keys and Item properties
getter using reflection. The linker handled that imperfectly (it left
some holes), in part because:
* System.Collections.Generic.IDictionary`2 does not implement
System.Collections.IDictionary; and
* It preserved the explicit methods - not the implicit one that were
used the the reflection-based code;
That later fact is also a bug (without the linker involvment) and solved
by this commit. A unit test was added to show the issue (NRE).
The patch also avoid the use of reflection for IDictionary since we can
simply typecast to get the same result (without the additional cost).
Seth Jackson [Mon, 26 May 2014 21:21:27 +0000 (17:21 -0400)]
L_cuserid was removed from OpenBSD.
This change released under the MIT license with permission from the original
author Christian Weisgerber.
Rolf Bjarne Kvinge [Mon, 26 May 2014 16:53:05 +0000 (18:53 +0200)]
Use string.IsNullOrEmpty instead of .Length.
Marek Safar [Mon, 26 May 2014 16:50:05 +0000 (18:50 +0200)]
[mcs] Don't release field address copy before it's used. Fixes #20040
Rolf Bjarne Kvinge [Fri, 23 May 2014 16:53:18 +0000 (18:53 +0200)]
[arm64] Fix another crash due to not using the right objc_msgSend signature.
Also simplify the code a little bit, there's no need to have separate
code paths for ARM64, since using the correct objc_msgSend signature
works on all architectures.
Rolf Bjarne Kvinge [Fri, 23 May 2014 16:51:33 +0000 (18:51 +0200)]
Fix a couple of compiler warnings.
Rolf Bjarne Kvinge [Mon, 26 May 2014 16:17:36 +0000 (18:17 +0200)]
[Microsoft.Build.Tasks] Add support for LogicalName in EmbeddedResources.
Lex Li [Mon, 26 May 2014 13:09:41 +0000 (13:09 +0000)]
[Mono.Security] Added AuthorityKeyIdentifierExtensionTest and SubjectKeyIdentifierExtensionTest.
Marek Safar [Mon, 26 May 2014 13:14:58 +0000 (15:14 +0200)]
[mcs] Fix error reporting propagation for loop statements. Fixes #20034
Zoltan Varga [Mon, 26 May 2014 09:49:12 +0000 (11:49 +0200)]
Merge pull request #1059 from ranma42/jenkins-warnings-cleanup
Cleanup of some MonoJenkins warnings
Marek Safar [Mon, 26 May 2014 07:55:40 +0000 (09:55 +0200)]
Merge pull request #1033 from godFather89/master
When dynamically compiling script with a class with a nested class defin...
Marek Safar [Mon, 26 May 2014 07:54:33 +0000 (09:54 +0200)]
[mcs] Don't report hiding warnings for compiler generated fields
Marek Safar [Mon, 26 May 2014 07:53:32 +0000 (09:53 +0200)]
[mcs] Add cref handling of user operator documentation without parameters
Marek Safar [Mon, 26 May 2014 07:47:20 +0000 (09:47 +0200)]
[eval] Add test for nested types
Andrea Canciani [Sun, 25 May 2014 09:13:18 +0000 (11:13 +0200)]
Fix non-prototype function declarations
MonoJenkins repeatedly complains about:
mono-counters.c:xxx:1: warning: function declaration isn't a prototype
[-Wstrict-prototypes]
This is caused by the missing declaration of the function arguments.
This change is released under the MIT license.
Andrea Canciani [Sun, 25 May 2014 09:31:05 +0000 (11:31 +0200)]
More C90 compatibility fixes
This silences the following gcc/clang warnings from MonoJenkins:
sgen-tarjan-bridge.c:395:2: warning: ISO C90 forbids mixed declarations and code
proflog.c:1942:2: warning: ISO C90 forbids mixed declarations and code
proflog.c:1999:3: warning: ISO C90 forbids mixed declarations and code
decode.c:2409:6: warning: ISO C90 forbids mixed declarations and code
decode.c:2433:6: warning: ISO C90 forbids mixed declarations and code
Moving the declarations to the beginning of the blocks is sufficient
to silence the warnings.
This change is released under the MIT license.
Alex Rønne Petersen [Sun, 25 May 2014 17:00:43 +0000 (19:00 +0200)]
Rename configure.in -> configure.ac. Based on PR #976.
Alex Rønne Petersen [Sun, 25 May 2014 16:49:12 +0000 (18:49 +0200)]
Merge pull request #1056 from ranma42/vc-compat-C90
Fix the build on Visual C++
Lex Li [Sun, 25 May 2014 12:02:57 +0000 (12:02 +0000)]
[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and SubjectKeyIdentifierExtension.
Andrea Canciani [Sun, 25 May 2014 07:56:23 +0000 (09:56 +0200)]
Fix the build on Visual C++
Visual C++ does not support intermixed declarations and code and
errors out with:
error C2275: 'guint' : illegal use of this type as an expression
This also silences gcc/clang warnings such as:
mono-counters.c:xxx:3: warning: ISO C90 forbids mixing declarations
and code
In this case this can be fixed easily by skipping the intermediate
variable.
Based on pull request #1043 by J-M <jean-michel.perraud@csiro.au>
This change is released under the MIT license.
Marek Safar [Sun, 25 May 2014 07:27:34 +0000 (09:27 +0200)]
Merge pull request #1055 from josedonizetti/fix_datacontractserializer_tests
validate if attribute is defined before check IsAny
Miguel de Icaza [Sun, 25 May 2014 04:47:09 +0000 (00:47 -0400)]
[build] the csproj files can now do a full class libraries build
Miguel de Icaza [Sun, 25 May 2014 04:41:55 +0000 (00:41 -0400)]
[System.Runtime.Remoting] Build if DBEUG Is defined
Miguel de Icaza [Sun, 25 May 2014 04:33:21 +0000 (00:33 -0400)]
[build] MSBuild setup: Add support for -keyfile and -delaysign, thanks to Marek Safar for the pointer
Miguel de Icaza [Sun, 25 May 2014 04:32:18 +0000 (00:32 -0400)]
[build] Drop AssemblyInfo from the sources in Mono.Cecil.Mdb
Miguel de Icaza [Sat, 24 May 2014 02:47:40 +0000 (22:47 -0400)]
[build] Fix Mono.Cecil.Mdb build with xbuild
josedonizetti [Fri, 23 May 2014 15:49:02 +0000 (11:49 -0400)]
validate if attribute is defined before check IsAny
Marek Safar [Sat, 24 May 2014 06:24:42 +0000 (08:24 +0200)]
Revert "[build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile"
This reverts commit
20872b3abe24c0e085710ea09209a92617fdb2e5 to fix the build
Miguel de Icaza [Sat, 24 May 2014 02:40:24 +0000 (22:40 -0400)]
[build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile
Currently the flag is passed on the command line, but this is
problematic for us since our xbuild implementation does not seem to support
the attribute that generates the /keyfile: argument
Rolf Bjarne Kvinge [Sat, 24 May 2014 00:17:49 +0000 (02:17 +0200)]
Fix TimeZoneTest to build properly with new-style XI assemblies.
Rolf Bjarne Kvinge [Sat, 24 May 2014 00:16:59 +0000 (02:16 +0200)]
Remove unused namespace from LazyTest.cs
Miguel de Icaza [Fri, 23 May 2014 22:03:32 +0000 (18:03 -0400)]
[build] Fix the reference to ecma.pub
Rodrigo Kumpera [Fri, 23 May 2014 21:33:56 +0000 (17:33 -0400)]
[runtime] Don't leak memory if the custom attribute constructor throws.
Rodrigo Kumpera [Fri, 23 May 2014 21:30:51 +0000 (17:30 -0400)]
[runtime] Add regression tests for custom attribute loader errors.
Rodrigo Kumpera [Fri, 23 May 2014 21:15:11 +0000 (17:15 -0400)]
[reflection] Harder the custom attribute code against common type load errors.
Replace silent failures with exceptions.
Rodrigo Kumpera [Fri, 23 May 2014 19:38:35 +0000 (15:38 -0400)]
[runtime] Change the semantics of mono_error_set_type_load_name to acquire alloc'd strings.
The use case for this function compared to the one that take MonoClass/MonoImage is for lookups
and the failed names are usually freshly alloc'd.
Fix a leak in class.c usage of mono_error_set_type_load_name.
Rodrigo Kumpera [Fri, 23 May 2014 18:10:47 +0000 (14:10 -0400)]
[reflection] Do proper error handling in more cases.
Remove all internal usages of mono_custom_attrs_construct and replace with mono_custom_attrs_construct_by_type
that takes a MonoError.
Introduce mono_custom_attrs_get_attr_checked and replace usage of the old one where it's needed.
Miguel de Icaza [Fri, 23 May 2014 21:15:44 +0000 (17:15 -0400)]
[build] Fresh new csproj files based on the updated build system.
Miguel de Icaza [Fri, 23 May 2014 21:12:43 +0000 (17:12 -0400)]
[build] Fix location of the key file
Miguel de Icaza [Fri, 23 May 2014 21:09:30 +0000 (17:09 -0400)]
[Managed.Windows.Forms] Disable TRACE code, since it is broken
Miguel de Icaza [Fri, 23 May 2014 20:58:26 +0000 (16:58 -0400)]
[build] The ecma.pub is one directory above
Miguel de Icaza [Fri, 23 May 2014 20:54:25 +0000 (16:54 -0400)]
[msvc/scripts] Update order.xml file with Makefile changes, update generator
Miguel de Icaza [Fri, 23 May 2014 20:51:33 +0000 (16:51 -0400)]
[build] Ensure that staged build directories are set on LOCAL_MCS_FLAGS
The LOCAL_MCS_FLAGS are passed to the compiler before the standard
directory for the profile. This is important both for correctness,
and also assists the solution generator, since we can now precisely
determine which intermediate project must be referenced.
Marek Safar [Fri, 23 May 2014 19:27:22 +0000 (21:27 +0200)]
Fix warnings