mono.git
10 years agoEnable INLINE support for s390x
Neale Ferguson [Thu, 22 Aug 2013 12:15:56 +0000 (08:15 -0400)]
Enable INLINE support for s390x

10 years agoFix test case not to assume it can write in the current directory
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

10 years ago[sgen] Disable cementing for parallel mark&sweep.
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.

10 years agoUse the invarient culture calendar if the requested one is not available. Partial...
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

10 years agoFix bug #14143 - xsl:import in included stylesheet caused compilation error.
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").

10 years ago[runtime] Don't allow execution of dynamic assemblies without run access. Fixes ...
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

10 years ago[corlib]Fix 2.0 test suite breakage.
Rodrigo Kumpera [Wed, 21 Aug 2013 14:52:08 +0000 (10:52 -0400)]
[corlib]Fix 2.0 test suite breakage.

10 years ago[verifier]Remove duplicate check.
Rodrigo Kumpera [Wed, 21 Aug 2013 14:22:23 +0000 (10:22 -0400)]
[verifier]Remove duplicate check.

10 years agorevert default serialization: ignore non-public members. Also need to exclude backing...
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.

10 years ago[runtime]Add some error checking to custom attr parsing and plug a memory leak. Fixes...
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.

10 years agoMake the dmcs/gmcs scripts identical to the mcs script with an extra -sdk: argument...
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.

10 years ago[runtime] Handle custom attributes with nested array of enums. Fixes #13767
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.

10 years agoUse i686-pc-mingw32-gcc as the mkbundle compiler on windows.
Zoltan Varga [Tue, 20 Aug 2013 22:24:26 +0000 (00:24 +0200)]
Use i686-pc-mingw32-gcc as the mkbundle compiler on windows.

10 years agoMerge pull request #737 from Mixaill/master
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.

10 years ago[verify]Relax the restriction on global methods visibility. Fixes #13890.
Rodrigo Kumpera [Tue, 20 Aug 2013 19:49:24 +0000 (15:49 -0400)]
[verify]Relax the restriction on global methods visibility. Fixes #13890.

10 years ago[verifier]Since 4.5 arrays now implement IReadOnlyList<T> and IReadOnlyCollection...
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.

10 years agoAdd support for more return types for constrained gsharedvt calls. Fixes #13030.
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.

10 years agoEnable support for constrained gsharedvt calls to Object.GetType ().
Zoltan Varga [Tue, 20 Aug 2013 17:09:31 +0000 (19:09 +0200)]
Enable support for constrained gsharedvt calls to Object.GetType ().

10 years agoFix a regression introduced by d84a165c8e799d8734df5f51a6dcf12b1f2a3695. Unbox casts...
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.

10 years agoMerge pull request #739 from mono/upstream-master
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...

10 years agoPorted perf code to work on arm and adjusted to changes in the kernel that broke...
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.

10 years ago[aot] Add support for constrained gsharedvt calls which return a reference value...
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.

10 years agoMerge pull request #738 from strawd/bug14077
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

10 years agoFix 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

10 years ago[runtime]Fix mono-config.h to use the mono API public types and not the glib ones.
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.

10 years agoAdd an #else -> #error path to mono-membar.h.
Alex Rønne Petersen [Mon, 19 Aug 2013 19:30:40 +0000 (21:30 +0200)]
Add an #else -> #error path to mono-membar.h.

10 years agoOnly disable __thread with clang on Mac OS X
Jeffrey Stedfast [Mon, 19 Aug 2013 15:30:31 +0000 (11:30 -0400)]
Only disable __thread with clang on Mac OS X

10 years agoAdd argument modifiers to generated base proxy when needed. Fixes #13892
Marek Safar [Mon, 19 Aug 2013 11:22:13 +0000 (13:22 +0200)]
Add argument modifiers to generated base proxy when needed. Fixes #13892

10 years agoAdd dispose checks to ReaderWriterLockSlim and fix race in currentThreadState initial...
Marek Safar [Sun, 18 Aug 2013 12:15:37 +0000 (14:15 +0200)]
Add dispose checks to ReaderWriterLockSlim and fix race in currentThreadState initialization

10 years agoOptimize common path
Marek Safar [Sun, 18 Aug 2013 12:13:37 +0000 (14:13 +0200)]
Optimize common path

10 years agoRevert "Revert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTok...
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.

10 years agoRemove deprecated -mno-cygwin flag.
Michael Pavlyshko [Sun, 18 Aug 2013 18:12:14 +0000 (21:12 +0300)]
Remove deprecated -mno-cygwin flag.

10 years agoRevert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor()."
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.

10 years agoFix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor().
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.

10 years agoGrow underlying buffer only when necessary. Fixes #13552
Marek Safar [Sat, 17 Aug 2013 14:31:45 +0000 (16:31 +0200)]
Grow underlying buffer only when necessary. Fixes #13552

10 years agoReport error for name collision between property and generic method with same name...
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

10 years agoMerge pull request #736 from wtfrank/charting
Marek Safar [Sat, 17 Aug 2013 08:39:41 +0000 (01:39 -0700)]
Merge pull request #736 from wtfrank/charting

add missing ZTestResult properties

10 years agoadd missing ZTestResult properties
Francis Fisher [Sat, 17 Aug 2013 07:36:49 +0000 (08:36 +0100)]
add missing ZTestResult properties

10 years agoFixes GZipStream dispose order. Fixes #14032
Marek Safar [Fri, 16 Aug 2013 21:14:38 +0000 (23:14 +0200)]
Fixes GZipStream dispose order. Fixes #14032

10 years agoConvert nan/infinity to uint 0 to match MS.NET. Fixes #13927.
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.

10 years agoMerge pull request #725 from knocte/threadpool_init
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

10 years agoImplements lifted nullable comparison with null
Marek Safar [Fri, 16 Aug 2013 13:18:49 +0000 (15:18 +0200)]
Implements lifted nullable comparison with null

10 years agoRewrites RuntimeReflectionExtensions to actually do something. Fixes #13626
Marek Safar [Fri, 16 Aug 2013 09:14:50 +0000 (11:14 +0200)]
Rewrites RuntimeReflectionExtensions to actually do something. Fixes #13626

10 years agoDisable test failing due to runtime bug
Marek Safar [Fri, 16 Aug 2013 08:13:05 +0000 (10:13 +0200)]
Disable test failing due to runtime bug

10 years agoSimplify the caching of delegate-invoke wrappers with a bound first argument, caching...
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.

10 years agoMerge pull request #734 from joncham/domain-debug-leaks
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

10 years agoRemove some unused parameters
Marek Safar [Thu, 15 Aug 2013 16:06:36 +0000 (18:06 +0200)]
Remove some unused parameters

10 years agoType parameter inflated interfaces needs to be marked too. Fixes #13996
Marek Safar [Thu, 15 Aug 2013 14:55:59 +0000 (16:55 +0200)]
Type parameter inflated interfaces needs to be marked too. Fixes #13996

10 years agoFix regression from 2cc36e3, missing BaseURI caused external schema resolution failure.
Atsushi Eno [Thu, 15 Aug 2013 13:09:49 +0000 (22:09 +0900)]
Fix regression from 2cc36e3, missing BaseURI caused external schema resolution failure.

10 years agoCorrect parsing of invalid 00000000-0000-0000-0000-000000000000 guid format. Fixes...
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

10 years agoSmall optimization of GuidParser
Marek Safar [Thu, 15 Aug 2013 09:41:05 +0000 (11:41 +0200)]
Small optimization of GuidParser

10 years agoWorkaround for legacy nunit
Marek Safar [Thu, 15 Aug 2013 09:17:02 +0000 (11:17 +0200)]
Workaround for legacy nunit

10 years agoInflate explicit delegate parameters using type inference context too. Fixes second...
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

10 years agoFix build (giconv.c)
Atsushi Eno [Thu, 15 Aug 2013 04:18:16 +0000 (13:18 +0900)]
Fix build (giconv.c)

10 years ago[eglib] Fixed g_utf8_to_utf16_general() to handle invalid utf8
Jeffrey Stedfast [Wed, 14 Aug 2013 23:40:59 +0000 (19:40 -0400)]
[eglib] Fixed g_utf8_to_utf16_general() to handle invalid utf8

10 years agoAdd tests for the recently fixed issues with block guards.
Rodrigo Kumpera [Wed, 14 Aug 2013 22:54:07 +0000 (18:54 -0400)]
Add tests for the recently fixed issues with block guards.

10 years ago[runtime]Generate the proper exit code for block guard trampolines.
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.

10 years ago[runtime]Properly compute the end address of a finally block when it ends in a dead...
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.

10 years ago[runtime] Make sure mono_create_handler_block_trampoline is async signal safe.
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.

10 years agoAdd a WrapperInfo for delegate-invoke wrappers to make it possible to distinguish...
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.

10 years agoAdd test for #13969
Marek Safar [Wed, 14 Aug 2013 19:54:49 +0000 (21:54 +0200)]
Add test for #13969

10 years agoFix recursive check for non dependent return types during type inference. Fixes ...
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

10 years agoFixed a few bugs that were found by Visual Studio's static code analysis.
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.

10 years ago[sgen] Fix another posix handshake issue.
Mark Probst [Wed, 14 Aug 2013 18:04:28 +0000 (11:04 -0700)]
[sgen] Fix another posix handshake issue.

10 years agoFree domain specific sequence point information.
Jonathan Chambers [Thu, 1 Aug 2013 20:40:00 +0000 (16:40 -0400)]
Free domain specific sequence point information.

Conflicts:
mono/mini/mini.c

10 years agoFree returned offsets and line numbers from mono_debug_symfile_get_line_numbers.
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.

10 years agoMerge pull request #733 from amoiseev-softheme/bugfix/monofix
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

10 years agoDon't crash when reporting invalid case label value. Fixes #13952
Marek Safar [Wed, 14 Aug 2013 13:32:21 +0000 (15:32 +0200)]
Don't crash when reporting invalid case label value. Fixes #13952

10 years agoApplying fixes to Https from Windows team to mono
Alexey Moiseev [Wed, 14 Aug 2013 13:26:18 +0000 (16:26 +0300)]
Applying fixes to Https from Windows team to mono

10 years agoMerge pull request #732 from wtfrank/charting
Marek Safar [Wed, 14 Aug 2013 07:48:17 +0000 (00:48 -0700)]
Merge pull request #732 from wtfrank/charting

placement of MonoTODO

10 years agoplacement of MonoTODO
Francis Fisher [Tue, 13 Aug 2013 23:14:23 +0000 (00:14 +0100)]
placement of MonoTODO

10 years ago[sgen] Add a workaround for #13951. Register the jit info for GC critical methods...
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.

10 years agoFix a warning.
Zoltan Varga [Tue, 13 Aug 2013 15:54:57 +0000 (17:54 +0200)]
Fix a warning.

10 years agoMerge pull request #729 from wtfrank/charting-submit
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

10 years agoFixed configure.in to fail the __thread check with clang
Jeffrey Stedfast [Tue, 13 Aug 2013 19:33:38 +0000 (15:33 -0400)]
Fixed configure.in to fail the __thread check with clang

10 years agoAdd System.DirectoryServices.Protocols to the rpm build to fix the bots
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

10 years agoFixed some compiler warnings in libgc
Jeffrey Stedfast [Tue, 13 Aug 2013 17:12:59 +0000 (13:12 -0400)]
Fixed some compiler warnings in libgc

10 years agoReplaced call to sscanf() with calls to strtoull(). Better. Faster. Stronger.
Jeffrey Stedfast [Tue, 13 Aug 2013 16:45:04 +0000 (12:45 -0400)]
Replaced call to sscanf() with calls to strtoull(). Better. Faster. Stronger.

10 years ago[mscorlib] Support OID names in RSACryptoServiceProvider.SignData()
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.

10 years agoImproved fix for g_iconv() compiler warnings
Jeffrey Stedfast [Tue, 13 Aug 2013 15:59:52 +0000 (11:59 -0400)]
Improved fix for g_iconv() compiler warnings

10 years agoFixed eglib compiler warnings about g_string_truncate() and g_iconv()
Jeffrey Stedfast [Tue, 13 Aug 2013 15:44:58 +0000 (11:44 -0400)]
Fixed eglib compiler warnings about g_string_truncate() and g_iconv()

10 years agoFixed some compiler warnings
Jeffrey Stedfast [Tue, 13 Aug 2013 15:24:21 +0000 (11:24 -0400)]
Fixed some compiler warnings

10 years agoRevert "Fix a test to work on mobile after the async release."
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.

10 years agoFix 5d37fac7c8765253a2ae406329ebf360c8429387 yet again.
Zoltan Varga [Tue, 13 Aug 2013 10:29:34 +0000 (12:29 +0200)]
Fix 5d37fac7c8765253a2ae406329ebf360c8429387 yet again.

10 years ago[msvc] Implement MONO_CONTEXT_GET_CURRENT () on the msvc build.
Zoltan Varga [Tue, 13 Aug 2013 01:32:44 +0000 (03:32 +0200)]
[msvc] Implement MONO_CONTEXT_GET_CURRENT () on the msvc build.

10 years agoFix warnings.
Zoltan Varga [Tue, 13 Aug 2013 01:32:17 +0000 (03:32 +0200)]
Fix warnings.

10 years ago[msvc] Avoid linking against libgc in the sgen configurations.
Zoltan Varga [Mon, 12 Aug 2013 23:18:33 +0000 (01:18 +0200)]
[msvc] Avoid linking against libgc in the sgen configurations.

10 years agoOnly build mscorlib in the monotouch_runtime profile.
Rolf Bjarne Kvinge [Mon, 12 Aug 2013 22:32:32 +0000 (00:32 +0200)]
Only build mscorlib in the monotouch_runtime profile.

10 years ago[sgen] Disable freeing of OS memory on win32, it causes asserts because VirtualFree...
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.

10 years ago[System.Core/Android] Android's libc.so doesn't export getpagesize()
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).

10 years ago[linker] Add AssemblyAction.Save to enable the linker to re-write an assembly without...
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]

10 years ago[linker] Small string optimizations to avoid culture aware code paths
Sebastien Pouliot [Mon, 12 Aug 2013 19:29:31 +0000 (15:29 -0400)]
[linker] Small string optimizations to avoid culture aware code paths

10 years ago[aot] Align the static linking symbol.
Zoltan Varga [Mon, 12 Aug 2013 19:10:02 +0000 (21:10 +0200)]
[aot] Align the static linking symbol.

10 years agofix properties per mono guidelines
Francis Fisher [Mon, 12 Aug 2013 18:48:20 +0000 (19:48 +0100)]
fix properties per mono guidelines

10 years agoMerge pull request #708 from spicypixel/hotfix/mono-object-to-string
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

10 years agoFixed SGen build for MSVC
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

10 years agoFixed incorrect pointer arithmetic on SGen for MSVC.
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

10 years agoFixed MSVC build, ported to Visual Studio 2012.
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

10 years agoImproved exception handling with vectored exception handling.
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

10 years agoFixed build breakage from my previous commit
Jeffrey Stedfast [Mon, 12 Aug 2013 16:12:47 +0000 (12:12 -0400)]
Fixed build breakage from my previous commit