Neale Ferguson [Thu, 22 Aug 2013 12:15:56 +0000 (08:15 -0400)]
Enable INLINE support for s390x
Sebastien Pouliot [Wed, 21 Aug 2013 23:54:01 +0000 (19:54 -0400)]
Fix test case not to assume it can write in the current directory
Mark Probst [Wed, 21 Aug 2013 23:24:03 +0000 (16:24 -0700)]
[sgen] Disable cementing for parallel mark&sweep.
Cementing isn't parallel-ready yet.
Sebastien Pouliot [Wed, 21 Aug 2013 18:15:27 +0000 (14:15 -0400)]
Use the invarient culture calendar if the requested one is not available. Partial fix for #13977
Atsushi Eno [Wed, 21 Aug 2013 17:15:24 +0000 (02:15 +0900)]
Fix bug #14143 - xsl:import in included stylesheet caused compilation error.
Simply ignoring xsl:import causes regression in
XslTransformTests.ImportIncorrectlyLocated so no-go. The actual error for
that case is now reported better (not just "unrecognized element").
Rodrigo Kumpera [Wed, 21 Aug 2013 16:08:11 +0000 (12:08 -0400)]
[runtime] Don't allow execution of dynamic assemblies without run access. Fixes #7126
Rodrigo Kumpera [Wed, 21 Aug 2013 14:52:08 +0000 (10:52 -0400)]
[corlib]Fix 2.0 test suite breakage.
Rodrigo Kumpera [Wed, 21 Aug 2013 14:22:23 +0000 (10:22 -0400)]
[verifier]Remove duplicate check.
Atsushi Eno [Wed, 21 Aug 2013 06:44:27 +0000 (15:44 +0900)]
revert default serialization: ignore non-public members. Also need to exclude backing field in non-default serialization.
Rodrigo Kumpera [Tue, 20 Aug 2013 23:09:47 +0000 (19:09 -0400)]
[runtime]Add some error checking to custom attr parsing and plug a memory leak. Fixes #13435.
Zoltan Varga [Tue, 20 Aug 2013 22:56:25 +0000 (00:56 +0200)]
Make the dmcs/gmcs scripts identical to the mcs script with an extra -sdk: argument, to avoid PATH problems, and to allow the windows installer to generate .bat files for them. Hopefully fixes #8813.
Rodrigo Kumpera [Tue, 20 Aug 2013 22:31:43 +0000 (18:31 -0400)]
[runtime] Handle custom attributes with nested array of enums. Fixes #13767
When decoding a custom attribute value, an array value in an object
position can have type of an enum.
Zoltan Varga [Tue, 20 Aug 2013 22:24:26 +0000 (00:24 +0200)]
Use i686-pc-mingw32-gcc as the mkbundle compiler on windows.
Zoltan Varga [Tue, 20 Aug 2013 22:20:14 +0000 (15:20 -0700)]
Merge pull request #737 from Mixaill/master
Remove deprecated -mno-cygwin flag.
Rodrigo Kumpera [Tue, 20 Aug 2013 19:49:24 +0000 (15:49 -0400)]
[verify]Relax the restriction on global methods visibility. Fixes #13890.
Rodrigo Kumpera [Tue, 20 Aug 2013 18:47:55 +0000 (14:47 -0400)]
[verifier]Since 4.5 arrays now implement IReadOnlyList<T> and IReadOnlyCollection<T>. Verify this properly. Fixes #13879.
Zoltan Varga [Tue, 20 Aug 2013 17:50:29 +0000 (19:50 +0200)]
Add support for more return types for constrained gsharedvt calls. Fixes #13030.
Zoltan Varga [Tue, 20 Aug 2013 17:09:31 +0000 (19:09 +0200)]
Enable support for constrained gsharedvt calls to Object.GetType ().
Zoltan Varga [Tue, 20 Aug 2013 14:08:32 +0000 (16:08 +0200)]
Fix a regression introduced by
d84a165c8e799d8734df5f51a6dcf12b1f2a3695. Unbox casts were failing for enums. Fixes #14026.
Paolo Molaro [Tue, 20 Aug 2013 13:10:07 +0000 (06:10 -0700)]
Merge pull request #739 from mono/upstream-master
Ported perf code to work on arm and adjusted to changes in the kernel th...
Paolo Molaro [Tue, 20 Aug 2013 12:50:47 +0000 (14:50 +0200)]
Ported perf code to work on arm and adjusted to changes in the kernel that broke mmap().
The kernel doesn't allow anymore to setup a perf fd with any cpu and the inherit flag
(to take into account threads created later on), so now we setup a fd/mmap area for each
cpu in the system.
Zoltan Varga [Mon, 19 Aug 2013 23:30:10 +0000 (01:30 +0200)]
[aot] Add support for constrained gsharedvt calls which return a reference value. Fixes #13030.
Marek Safar [Mon, 19 Aug 2013 20:05:16 +0000 (13:05 -0700)]
Merge pull request #738 from strawd/bug14077
Fix for #14077. HashSet no longer grows in capacity on deserialize
David Straw [Mon, 19 Aug 2013 19:48:17 +0000 (13:48 -0600)]
Fix for #14077. HashSet no longer grows in capacity on deserialize
Not all necessary members were being initialized during deserialization
Rodrigo Kumpera [Mon, 19 Aug 2013 19:40:05 +0000 (15:40 -0400)]
[runtime]Fix mono-config.h to use the mono API public types and not the glib ones.
Alex Rønne Petersen [Mon, 19 Aug 2013 19:30:40 +0000 (21:30 +0200)]
Add an #else -> #error path to mono-membar.h.
Jeffrey Stedfast [Mon, 19 Aug 2013 15:30:31 +0000 (11:30 -0400)]
Only disable __thread with clang on Mac OS X
Marek Safar [Mon, 19 Aug 2013 11:22:13 +0000 (13:22 +0200)]
Add argument modifiers to generated base proxy when needed. Fixes #13892
Marek Safar [Sun, 18 Aug 2013 12:15:37 +0000 (14:15 +0200)]
Add dispose checks to ReaderWriterLockSlim and fix race in currentThreadState initialization
Marek Safar [Sun, 18 Aug 2013 12:13:37 +0000 (14:13 +0200)]
Optimize common path
Atsushi Eno [Mon, 19 Aug 2013 03:13:38 +0000 (12:13 +0900)]
Revert "Revert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor().""
This reverts commit
0ef5f49c1f5a1f9fd059e701685e09639c95aab3.
Michael Pavlyshko [Sun, 18 Aug 2013 18:12:14 +0000 (21:12 +0300)]
Remove deprecated -mno-cygwin flag.
Atsushi Eno [Sun, 18 Aug 2013 06:34:37 +0000 (15:34 +0900)]
Revert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor()."
This reverts commit
b43211d101e5e058b0d57e92a350515ffd71df26.
Atsushi Eno [Sun, 18 Aug 2013 06:31:40 +0000 (15:31 +0900)]
Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor().
It is only one of probably many reasons that prevents Jurassic JavaScript engine.
Marek Safar [Sat, 17 Aug 2013 14:31:45 +0000 (16:31 +0200)]
Grow underlying buffer only when necessary. Fixes #13552
Marek Safar [Sat, 17 Aug 2013 09:12:24 +0000 (11:12 +0200)]
Report error for name collision between property and generic method with same name. Fixes #14053
Marek Safar [Sat, 17 Aug 2013 08:39:41 +0000 (01:39 -0700)]
Merge pull request #736 from wtfrank/charting
add missing ZTestResult properties
Francis Fisher [Sat, 17 Aug 2013 07:36:49 +0000 (08:36 +0100)]
add missing ZTestResult properties
Marek Safar [Fri, 16 Aug 2013 21:14:38 +0000 (23:14 +0200)]
Fixes GZipStream dispose order. Fixes #14032
Zoltan Varga [Fri, 16 Aug 2013 17:48:45 +0000 (19:48 +0200)]
Convert nan/infinity to uint 0 to match MS.NET. Fixes #13927.
Rodrigo Kumpera [Fri, 16 Aug 2013 13:21:31 +0000 (06:21 -0700)]
Merge pull request #725 from knocte/threadpool_init
[ThreadPool] Allow heavier initialization when using --server flag
Marek Safar [Fri, 16 Aug 2013 13:18:49 +0000 (15:18 +0200)]
Implements lifted nullable comparison with null
Marek Safar [Fri, 16 Aug 2013 09:14:50 +0000 (11:14 +0200)]
Rewrites RuntimeReflectionExtensions to actually do something. Fixes #13626
Marek Safar [Fri, 16 Aug 2013 08:13:05 +0000 (10:13 +0200)]
Disable test failing due to runtime bug
Zoltan Varga [Fri, 16 Aug 2013 01:10:39 +0000 (03:10 +0200)]
Simplify the caching of delegate-invoke wrappers with a bound first argument, caching can be done using just the signature.
Zoltan Varga [Fri, 16 Aug 2013 00:53:33 +0000 (17:53 -0700)]
Merge pull request #734 from joncham/domain-debug-leaks
Fix domain related leaks of debug information
Marek Safar [Thu, 15 Aug 2013 16:06:36 +0000 (18:06 +0200)]
Remove some unused parameters
Marek Safar [Thu, 15 Aug 2013 14:55:59 +0000 (16:55 +0200)]
Type parameter inflated interfaces needs to be marked too. Fixes #13996
Atsushi Eno [Thu, 15 Aug 2013 13:09:49 +0000 (22:09 +0900)]
Fix regression from
2cc36e3, missing BaseURI caused external schema resolution failure.
Marek Safar [Thu, 15 Aug 2013 10:18:36 +0000 (12:18 +0200)]
Correct parsing of invalid
00000000-0000-0000-0000-
000000000000 guid format. Fixes #13970
Marek Safar [Thu, 15 Aug 2013 09:41:05 +0000 (11:41 +0200)]
Small optimization of GuidParser
Marek Safar [Thu, 15 Aug 2013 09:17:02 +0000 (11:17 +0200)]
Workaround for legacy nunit
Marek Safar [Thu, 15 Aug 2013 09:01:50 +0000 (11:01 +0200)]
Inflate explicit delegate parameters using type inference context too. Fixes second part of #13969
Atsushi Eno [Thu, 15 Aug 2013 04:18:16 +0000 (13:18 +0900)]
Fix build (giconv.c)
Jeffrey Stedfast [Wed, 14 Aug 2013 23:40:59 +0000 (19:40 -0400)]
[eglib] Fixed g_utf8_to_utf16_general() to handle invalid utf8
Rodrigo Kumpera [Wed, 14 Aug 2013 22:54:07 +0000 (18:54 -0400)]
Add tests for the recently fixed issues with block guards.
Rodrigo Kumpera [Wed, 14 Aug 2013 22:13:37 +0000 (18:13 -0400)]
[runtime]Generate the proper exit code for block guard trampolines.
Finally blocks use a non-standard calling convention which means we need to take it
into account in the return address hijacking trampoline.
A finally block is called with ESP % 16 == 4. Once inside the finally block, ESP returns
to be % 16 == 0 due to the call instruction pushing the return address.
The problem comes when we want to hijack the return address. Our trampolines expect a
normal calling convention with ESP properly aligned, so we use a small thunk of code that
does that before jumping into the trampoline itself. This is required as we'll enter native.
The problem lies on the exit path as the trampoline jump to an arbitrary place instead back
to the above thunk. This leaves the stack with the thunk adjustment in, which will cause
the resulting code to misalign the stack even further.
The solution, though a big ugly, is to change the exit path of the trampoline fix the stack
to be "properly" misaligned.
Rodrigo Kumpera [Wed, 14 Aug 2013 22:11:31 +0000 (18:11 -0400)]
[runtime]Properly compute the end address of a finally block when it ends in a dead basic-block.
We compute the end address of a finally block by using cil_offset_to_bb, which can point to dead
basic blocks if those were killed by CFG simplification.
Rodrigo Kumpera [Wed, 14 Aug 2013 22:09:40 +0000 (18:09 -0400)]
[runtime] Make sure mono_create_handler_block_trampoline is async signal safe.
We call mono_create_handler_block_trampoline when installing the block guard,
so this function must be async safe at that stage in the runtime.
Since it is eagerly called during startup, we should be fine with just
memory barriers.
Zoltan Varga [Wed, 14 Aug 2013 20:59:13 +0000 (22:59 +0200)]
Add a WrapperInfo for delegate-invoke wrappers to make it possible to distinguish between normal wrappers and ones with a bound first argument.
Marek Safar [Wed, 14 Aug 2013 19:54:49 +0000 (21:54 +0200)]
Add test for #13969
Marek Safar [Wed, 14 Aug 2013 19:49:49 +0000 (21:49 +0200)]
Fix recursive check for non dependent return types during type inference. Fixes #13969
Mark Probst [Wed, 14 Aug 2013 18:22:59 +0000 (11:22 -0700)]
Fixed a few bugs that were found by Visual Studio's static code analysis.
Mark Probst [Wed, 14 Aug 2013 18:04:28 +0000 (11:04 -0700)]
[sgen] Fix another posix handshake issue.
Jonathan Chambers [Thu, 1 Aug 2013 20:40:00 +0000 (16:40 -0400)]
Free domain specific sequence point information.
Conflicts:
mono/mini/mini.c
Jonathan Chambers [Thu, 1 Aug 2013 20:37:42 +0000 (16:37 -0400)]
Free returned offsets and line numbers from mono_debug_symfile_get_line_numbers.
Marek Safar [Wed, 14 Aug 2013 13:46:41 +0000 (06:46 -0700)]
Merge pull request #733 from amoiseev-softheme/bugfix/monofix
Applying fixes to Https from Windows team to mono
Marek Safar [Wed, 14 Aug 2013 13:32:21 +0000 (15:32 +0200)]
Don't crash when reporting invalid case label value. Fixes #13952
Alexey Moiseev [Wed, 14 Aug 2013 13:26:18 +0000 (16:26 +0300)]
Applying fixes to Https from Windows team to mono
Marek Safar [Wed, 14 Aug 2013 07:48:17 +0000 (00:48 -0700)]
Merge pull request #732 from wtfrank/charting
placement of MonoTODO
Francis Fisher [Tue, 13 Aug 2013 23:14:23 +0000 (00:14 +0100)]
placement of MonoTODO
Zoltan Varga [Tue, 13 Aug 2013 22:15:04 +0000 (00:15 +0200)]
[sgen] Add a workaround for #13951. Register the jit info for GC critical methods as soon as they are loaded, and avoid lookups in the AOT images when calling mono_jit_info_table_find () during STW.
Zoltan Varga [Tue, 13 Aug 2013 15:54:57 +0000 (17:54 +0200)]
Fix a warning.
Marek Safar [Tue, 13 Aug 2013 19:42:18 +0000 (12:42 -0700)]
Merge pull request #729 from wtfrank/charting-submit
Continued implementation of Charting namespace
Jeffrey Stedfast [Tue, 13 Aug 2013 19:33:38 +0000 (15:33 -0400)]
Fixed configure.in to fail the __thread check with clang
Miguel de Icaza [Tue, 13 Aug 2013 19:00:18 +0000 (15:00 -0400)]
Add System.DirectoryServices.Protocols to the rpm build to fix the bots
Jeffrey Stedfast [Tue, 13 Aug 2013 17:12:59 +0000 (13:12 -0400)]
Fixed some compiler warnings in libgc
Jeffrey Stedfast [Tue, 13 Aug 2013 16:45:04 +0000 (12:45 -0400)]
Replaced call to sscanf() with calls to strtoull(). Better. Faster. Stronger.
Jonathan Pryor [Tue, 13 Aug 2013 16:09:56 +0000 (12:09 -0400)]
[mscorlib] Support OID names in RSACryptoServiceProvider.SignData()
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13953
MSDN documents that RSACryptoServiceProvider.SignData()'s provider
paramter may contain an OID name:
http://msdn.microsoft.com/en-us/library/y2wf1b6k.aspx
> The halg parameter can accept a String, a HashAlgorithm, or a Type.
> The string value can be one of the following:
> * The object identifier (OID) friendly name of the hash algorithm to use,
> either a name registered in the crypto config file or one in the
> Crypto API OID table.
> * The OID value. The OID must be one recognized by the Crypto API.
> For example, you could use SignData(new byte[5], "1.3.14.3.2.26") or
> SignData(new byte[5], "sha1"), or SignData(new byte[5], "SHA1").
Add support for this OID names as the provider.
Jeffrey Stedfast [Tue, 13 Aug 2013 15:59:52 +0000 (11:59 -0400)]
Improved fix for g_iconv() compiler warnings
Jeffrey Stedfast [Tue, 13 Aug 2013 15:44:58 +0000 (11:44 -0400)]
Fixed eglib compiler warnings about g_string_truncate() and g_iconv()
Jeffrey Stedfast [Tue, 13 Aug 2013 15:24:21 +0000 (11:24 -0400)]
Fixed some compiler warnings
Rolf Bjarne Kvinge [Tue, 13 Aug 2013 10:58:33 +0000 (12:58 +0200)]
Revert "Fix a test to work on mobile after the async release."
This reverts commit
b22667cd23c64afebbc947978b79cb91ec50370d.
It was a build bug in monotouch, not a buggy test.
Zoltan Varga [Tue, 13 Aug 2013 10:29:34 +0000 (12:29 +0200)]
Zoltan Varga [Tue, 13 Aug 2013 01:32:44 +0000 (03:32 +0200)]
[msvc] Implement MONO_CONTEXT_GET_CURRENT () on the msvc build.
Zoltan Varga [Tue, 13 Aug 2013 01:32:17 +0000 (03:32 +0200)]
Fix warnings.
Zoltan Varga [Mon, 12 Aug 2013 23:18:33 +0000 (01:18 +0200)]
[msvc] Avoid linking against libgc in the sgen configurations.
Rolf Bjarne Kvinge [Mon, 12 Aug 2013 22:32:32 +0000 (00:32 +0200)]
Only build mscorlib in the monotouch_runtime profile.
Zoltan Varga [Mon, 12 Aug 2013 21:23:57 +0000 (23:23 +0200)]
[sgen] Disable freeing of OS memory on win32, it causes asserts because VirtualFree () fails.
Jonathan Pryor [Mon, 12 Aug 2013 20:59:14 +0000 (16:59 -0400)]
[System.Core/Android] Android's libc.so doesn't export getpagesize()
Partially fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=12739
Android's libc.so doesn't export getpagesize(3), resulting in an
EntryPointNotFoundException:
System.EntryPointNotFoundException: getpagesize
at (wrapper managed-to-native) System.IO.MemoryMappedFiles.MemoryMapImpl.getpagesize ()
at System.IO.MemoryMappedFiles.MemoryMapImpl.Map (int,long,long&,System.IO.MemoryMappedFiles.MemoryMappedFileAccess,intptr&,int&)
at System.IO.MemoryMappedFiles.MemoryMappedViewAccessor.Create (long,long,System.IO.MemoryMappedFiles.MemoryMappedFileAccess)
at System.IO.MemoryMappedFiles.MemoryMappedViewAccessor..ctor (int,long,long,System.IO.MemoryMappedFiles.MemoryMappedFileAccess)
at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateViewAccessor (long,long,System.IO.MemoryMappedFiles.MemoryMappedFileAccess)
Android does provide getpagesize(3); it's just an inline function.
The full fix will require two parts:
1. Update MemoryMapImpl to P/Invoke
libmonodroid.so!monodroid_getpagesize()
2. Add a libmonodroid.so!monodroid_getpagesize() export.
This commit implements (1).
Sebastien Pouliot [Mon, 12 Aug 2013 19:31:18 +0000 (15:31 -0400)]
[linker] Add AssemblyAction.Save to enable the linker to re-write an assembly without actually linking it. Useful to remove references to PCL assemblies that are not really used (e.g. when only type forwarders are needed) [#13488]
Sebastien Pouliot [Mon, 12 Aug 2013 19:29:31 +0000 (15:29 -0400)]
[linker] Small string optimizations to avoid culture aware code paths
Zoltan Varga [Mon, 12 Aug 2013 19:10:02 +0000 (21:10 +0200)]
[aot] Align the static linking symbol.
Francis Fisher [Mon, 12 Aug 2013 18:48:20 +0000 (19:48 +0100)]
fix properties per mono guidelines
Zoltan Varga [Mon, 12 Aug 2013 18:17:07 +0000 (11:17 -0700)]
Merge pull request #708 from spicypixel/hotfix/mono-object-to-string
Add support for value types to mono_object_to_string
Jonathan Lima [Fri, 2 Aug 2013 07:39:05 +0000 (04:39 -0300)]
Fixed SGen build for MSVC
From:
https://github.com/mono/mono/pull/724
Jonathan Lima [Thu, 8 Aug 2013 20:51:04 +0000 (17:51 -0300)]
Fixed incorrect pointer arithmetic on SGen for MSVC.
From:
https://github.com/mono/mono/pull/724
Jonathan Lima [Fri, 2 Aug 2013 02:41:59 +0000 (23:41 -0300)]
Fixed MSVC build, ported to Visual Studio 2012.
From:
https://github.com/mono/mono/pull/724
Jonathan Lima [Fri, 2 Aug 2013 03:42:22 +0000 (00:42 -0300)]
Improved exception handling with vectored exception handling.
Now a native debugger can be used with soft debugger running without triggering any exception. Code provided by Jonathan Chambers:
* https://github.com/Unity-Technologies/mono/commit/
e9f9f7170914c5caaff3e95e09f6f58ecced2a10
* https://github.com/Unity-Technologies/mono/commit/
4c2e1db60ccb38e792545d595d85b12ff309a919
* https://github.com/Unity-Technologies/mono/commit/
bd7e534aa7da49b89787b8c1b40e165a34c0e960
* https://github.com/Unity-Technologies/mono/commit/
b885251a83969d243deabc56bb3d1495d4a971dc
From:
https://github.com/mono/mono/pull/724
Jeffrey Stedfast [Mon, 12 Aug 2013 16:12:47 +0000 (12:12 -0400)]
Fixed build breakage from my previous commit