mono.git
7 years ago[msvc] Update csproj files
monojenkins [Fri, 25 Nov 2016 16:51:25 +0000 (16:51 +0000)]
[msvc] Update csproj files

7 years agoMerge pull request #4020 from akoeplinger/mobile_static-rename
Alexander Köplinger [Fri, 25 Nov 2016 11:03:35 +0000 (12:03 +0100)]
Merge pull request #4020 from akoeplinger/mobile_static-rename

Rename the mobile_static profile to aot_only

7 years ago[corlib] Move ComAwareEventInfo stub into System.Core
Alexander Köplinger [Fri, 25 Nov 2016 02:38:45 +0000 (03:38 +0100)]
[corlib] Move ComAwareEventInfo stub into System.Core

It was mistakenly added to corlib, it is in System.Core.dll on .NET

7 years ago[jit] Fix more simd+aot issues. Avoid treating the Vector<T> GTD or Vector<T_REF...
Zoltan Varga [Thu, 24 Nov 2016 22:23:59 +0000 (17:23 -0500)]
[jit] Fix more simd+aot issues. Avoid treating the Vector<T> GTD or Vector<T_REF> or Vector<T_GSHAREDVT> as simd types. (#4021)

7 years agoMerge pull request #4019 from vargaz/get-gclass-locking
Bernhard Urban [Thu, 24 Nov 2016 20:57:00 +0000 (21:57 +0100)]
Merge pull request #4019 from vargaz/get-gclass-locking

[runtime] Reduce the size of the critical section in mono_generic_cla…

7 years agoMerge pull request #4017 from vargaz/get-array-class-locking
Bernhard Urban [Thu, 24 Nov 2016 20:54:36 +0000 (21:54 +0100)]
Merge pull request #4017 from vargaz/get-array-class-locking

[runtime] Decrease the size of the critical section in mono_bounded_a…

7 years agoMerge pull request #4018 from vargaz/get-fnptr-locking
Bernhard Urban [Thu, 24 Nov 2016 20:54:01 +0000 (21:54 +0100)]
Merge pull request #4018 from vargaz/get-fnptr-locking

[runtime] Reduce the size of the critical section in mono_fnptr_class…

7 years ago[runtime] Reduce the size of the critical section in mono_fnptr_class_get ().
Zoltan Varga [Wed, 23 Nov 2016 22:51:44 +0000 (17:51 -0500)]
[runtime] Reduce the size of the critical section in mono_fnptr_class_get ().

7 years agoRename the mobile_static profile to aot_only
Alexander Köplinger [Thu, 24 Nov 2016 01:33:29 +0000 (02:33 +0100)]
Rename the mobile_static profile to aot_only

We decided it's a better name since we're using the profile to
test FullAOT scenarios on desktop (as opposed to the mobile profiles).

While doing the rename I saw that a lot of the #ifdefs were using
MOBILE_STATIC even though the code should actually be included/excluded
in all FullAOT scenarios, e.g. System.Reflection.Emit. I replaced those
cases with FULL_AOT_RUNTIME instead.

For cases where code is specific to this profile, I added a new
AOT_ONLY_DESKTOP define.

7 years ago[Facades] Add netstandard
Marek Safar [Thu, 24 Nov 2016 16:14:54 +0000 (17:14 +0100)]
[Facades] Add netstandard

7 years agoBump cecil
Marek Safar [Thu, 24 Nov 2016 11:14:07 +0000 (12:14 +0100)]
Bump cecil

7 years ago[mcs] Count arity correctly for deeply nested types
Marek Safar [Thu, 24 Nov 2016 10:58:46 +0000 (11:58 +0100)]
[mcs] Count arity correctly for deeply nested types

7 years ago[runtime] Move more callbacks to the RuntimeCallbacks structure. (#4016)
Zoltan Varga [Thu, 24 Nov 2016 00:23:10 +0000 (19:23 -0500)]
[runtime] Move more callbacks to the RuntimeCallbacks structure. (#4016)

7 years ago[runtime] Decrease the size of the critical section in mono_bounded_array_class_get ().
Zoltan Varga [Thu, 24 Nov 2016 00:20:00 +0000 (19:20 -0500)]
[runtime] Decrease the size of the critical section in mono_bounded_array_class_get ().

7 years ago[runtime] Reduce the size of the critical section in mono_generic_class_get_class ().
Zoltan Varga [Wed, 23 Nov 2016 22:29:39 +0000 (17:29 -0500)]
[runtime] Reduce the size of the critical section in mono_generic_class_get_class ().

7 years ago[runtime] Disable the Wformat-zero-length warning.
Zoltan Varga [Wed, 23 Nov 2016 20:52:37 +0000 (15:52 -0500)]
[runtime] Disable the Wformat-zero-length warning.

7 years ago[simd] Fix a few AOT problems.
Zoltan Varga [Wed, 23 Nov 2016 19:48:22 +0000 (14:48 -0500)]
[simd] Fix a few AOT problems.

7 years ago[bcl] Implement Thread.CurrentThread using an icall which calls mono_… (#4011)
Zoltan Varga [Wed, 23 Nov 2016 19:43:47 +0000 (14:43 -0500)]
[bcl] Implement Thread.CurrentThread using an icall which calls mono_… (#4011)

* [bcl] Implement Thread.CurrentThread using an icall which calls mono_thread_current () to avoid creating duplicate Thread objects.

* [bcl] Remove unused Thread:CurrentInternalThread_internal () icall.

* [bcl] Optimize Thread:CurrentThread a bit.

7 years agoMerge pull request #4013 from ntherning/fix-assert-in-poll_event_wait-on-WSAENOTSOCK...
Niklas Therning [Wed, 23 Nov 2016 17:58:29 +0000 (18:58 +0100)]
Merge pull request #4013 from ntherning/fix-assert-in-poll_event_wait-on-WSAENOTSOCK-on-windows-2

Fix assert in poll_event_wait() on WSAENOTSOCK on Windows #2

7 years ago[System] Don't send response on empty stream write. Fixes #47549
Marek Safar [Wed, 23 Nov 2016 16:40:00 +0000 (17:40 +0100)]
[System] Don't send response on empty stream write. Fixes #47549

7 years agoMerge pull request #3962 from mkorkalo/fix_MonoBtlsContext_memory_leak
Martin Baulig [Wed, 23 Nov 2016 15:50:09 +0000 (16:50 +0100)]
Merge pull request #3962 from mkorkalo/fix_MonoBtlsContext_memory_leak

fix a massive memory leak in MonoBtlsContext

7 years agoMerge pull request #3992 from lambdageek/dev-handles-srassembly
Aleksey Kliger (λgeek) [Wed, 23 Nov 2016 14:47:37 +0000 (09:47 -0500)]
Merge pull request #3992 from lambdageek/dev-handles-srassembly

[coop] Use handles in System.Reflection.Assembly.{GetReferencedAssemblies,InternalGetAssemblyName}

7 years agoFix assert in poll_event_wait() on WSAENOTSOCK on Windows #2
Niklas Therning [Wed, 23 Nov 2016 13:57:45 +0000 (14:57 +0100)]
Fix assert in poll_event_wait() on WSAENOTSOCK on Windows #2

PR #3998 fixes an error handling issue in poll_event_wait(). This new change
fixes a minor code style problem in that PR, the condition in a ternary wasn't
enclosed in parentheses.

7 years ago[runtime] Filter out duplicate interfaces in mono_class_get_implemented_interfaces...
Zoltan Varga [Wed, 23 Nov 2016 13:20:56 +0000 (08:20 -0500)]
[runtime] Filter out duplicate interfaces in mono_class_get_implemented_interfaces (). (#4007)

7 years ago[runtime] Allocate the temporary vtable array using g_malloc in mono_class_setup_vtab...
Zoltan Varga [Wed, 23 Nov 2016 03:24:38 +0000 (22:24 -0500)]
[runtime] Allocate the temporary vtable array using g_malloc in mono_class_setup_vtable (), alloca can overflow for large vtable sizes. Hopefully fixes #45140. (#4006)

7 years ago[threadpool] Replace stop by abort for worker thread
Ludovic Henry [Tue, 22 Nov 2016 15:52:00 +0000 (10:52 -0500)]
[threadpool] Replace stop by abort for worker thread

7 years ago[Socket] Fix DuplicateAndClose (#3995)
Kenneth Skovhede [Wed, 23 Nov 2016 00:04:57 +0000 (01:04 +0100)]
[Socket] Fix DuplicateAndClose (#3995)

* Fixed issue 47425

This fix simply ensures that the `m_Handle` value is not processed by the GC after a call to `DuplicateAndClose` as that causes the duplicated socket to close.

A potential issue is that this will leak sockets if the sockets are never re-created.

* Implemented ref-counting as suggested by @ludovic-henry

7 years agoBockbuild
Alexis Christoforides [Wed, 23 Nov 2016 00:01:02 +0000 (19:01 -0500)]
Bockbuild

7 years agoBump corlib version.
Aleksey Kliger [Mon, 21 Nov 2016 16:53:48 +0000 (11:53 -0500)]
Bump corlib version.

7 years ago[reflection] Implement GetReferencedAssemblies in managed
Aleksey Kliger [Mon, 21 Nov 2016 19:55:12 +0000 (14:55 -0500)]
[reflection] Implement GetReferencedAssemblies in managed

Call out to native to get an array of Mono.MonoAssemblyName* and use
AssemblyName.FillName to create the managed structs.

7 years agoBump bockbuild properly
Alexis Christoforides [Tue, 22 Nov 2016 23:28:52 +0000 (18:28 -0500)]
Bump bockbuild properly

7 years agoBump bockbuild
Alexis Christoforides [Tue, 22 Nov 2016 22:39:31 +0000 (17:39 -0500)]
Bump bockbuild

7 years ago[runtime] Avoid passing a newline to mono_trace (), it adds one automatically.
Zoltan Varga [Tue, 22 Nov 2016 20:42:17 +0000 (15:42 -0500)]
[runtime] Avoid passing a newline to mono_trace (), it adds one automatically.

7 years ago[jit] Make an assert more informative. Fixes #47152.
Zoltan Varga [Tue, 22 Nov 2016 20:12:38 +0000 (15:12 -0500)]
[jit] Make an assert more informative. Fixes #47152.

7 years ago[reflection] Change Assembly.InternalGetAssemblyName to return native MonoAssemblyName
Aleksey Kliger [Mon, 21 Nov 2016 16:52:28 +0000 (11:52 -0500)]
[reflection] Change Assembly.InternalGetAssemblyName to return native MonoAssemblyName

Use managed AssemblyName.FillName to make a
System.Reflection.AssemblyName from a Mono.MonoAssemblyName

Delete native fill_reflection_assembly_name implementation. It's dead code.

7 years ago[metadata] mono_assembly_fill_assembly_name_full
Aleksey Kliger [Mon, 21 Nov 2016 16:44:57 +0000 (11:44 -0500)]
[metadata] mono_assembly_fill_assembly_name_full

When copyBlobs is true, duplicates the
name, culture and public_key fields of MonoAssemblyName.

If copyBlobs is false, point those fields into the MonoImage.

Change mono_assembly_fill_assembly_name to call the full version with
copyBlobs == FALSE.

7 years ago[coop] Use handles for S.R.Assembly.{GetReferencedAssemblies,InternalGetAssemblyName}
Aleksey Kliger [Fri, 18 Nov 2016 19:33:43 +0000 (14:33 -0500)]
[coop] Use handles for S.R.Assembly.{GetReferencedAssemblies,InternalGetAssemblyName}

7 years ago[runtime] Add mono_string_handle_to_utf8
Aleksey Kliger [Fri, 18 Nov 2016 19:12:43 +0000 (14:12 -0500)]
[runtime] Add mono_string_handle_to_utf8

7 years ago[runtime] mark mono_get_exception_{file_not_found2,bad_image_format2} external only.
Aleksey Kliger [Fri, 18 Nov 2016 19:09:07 +0000 (14:09 -0500)]
[runtime] mark mono_get_exception_{file_not_found2,bad_image_format2} external only.

Runtime should use
- mono_error_set_assembly_load  for mono_get_exception_file_not_found2
- mono_error_set_bad_image_name for mono_get_exception_bad_image_format2

7 years agoMerge branch 'alexischr/nursery-canaries-managed-alloc'
Alexis Christoforides [Tue, 22 Nov 2016 19:10:22 +0000 (14:10 -0500)]
Merge branch 'alexischr/nursery-canaries-managed-alloc'

7 years agoMerge pull request #4003 from ntherning/ignore-disconnected-interfaces-in-HttpListene...
Niklas Therning [Tue, 22 Nov 2016 19:03:22 +0000 (20:03 +0100)]
Merge pull request #4003 from ntherning/ignore-disconnected-interfaces-in-HttpListenerRequestTest.HttpRequestIsLocal

Ignore disconnected interfaces in HttpListenerRequestTest.HttpRequestIsLocal

7 years agoMerge pull request #4005 from monojenkins/update-csprojs
Alexander Köplinger [Tue, 22 Nov 2016 18:26:39 +0000 (19:26 +0100)]
Merge pull request #4005 from monojenkins/update-csprojs

[msvc] Update csproj files

7 years ago[System.Runtime.Remoting] Disable test accidentally re-enabled by nunitlite switch
Marek Safar [Tue, 22 Nov 2016 17:06:33 +0000 (18:06 +0100)]
[System.Runtime.Remoting] Disable test accidentally re-enabled by nunitlite switch

7 years ago[runtime] Disable some tests when running with llvm since they take too much time...
Zoltan Varga [Tue, 22 Nov 2016 16:59:53 +0000 (11:59 -0500)]
[runtime] Disable some tests when running with llvm since they take too much time. Reduce the run time of the namedmutex-destroy-race test.

7 years ago[msvc] Update csproj files
monojenkins [Tue, 22 Nov 2016 16:39:46 +0000 (16:39 +0000)]
[msvc] Update csproj files

7 years ago[runtime] Mark the ThreadPool.PerformWaitCallback () method as save_lmf, so ThreadAbo...
Zoltan Varga [Tue, 22 Nov 2016 16:24:51 +0000 (11:24 -0500)]
[runtime] Mark the ThreadPool.PerformWaitCallback () method as save_lmf, so ThreadAbortExceptions thrown inside tp worker threads are always caught, otherwise if the TAE arrives while the threads is in native code while executing the callback, the EH will code will abort the thread so the worker thread cleanup code is not executed, causing problems later. (#4002)

7 years ago[mcs] Null coalescing over typed null constants.
Marek Safar [Tue, 22 Nov 2016 16:01:15 +0000 (17:01 +0100)]
[mcs] Null coalescing over typed null constants.

7 years ago[profiles] Fix MOBILE assemblies and tests compilation + Rename MOBILE to AOT_HYBRID
Ludovic Henry [Fri, 18 Nov 2016 20:58:03 +0000 (15:58 -0500)]
[profiles] Fix MOBILE assemblies and tests compilation + Rename MOBILE to AOT_HYBRID

This only fixes the compilation of the assemblies and the tests. This doesn't fix the failing tests or the crashes.

7 years ago[ci] Add script to run MOBILE profile tests
Ludovic Henry [Fri, 18 Nov 2016 21:53:21 +0000 (16:53 -0500)]
[ci] Add script to run MOBILE profile tests

7 years ago[utils] Add MonoRefCount to factor ref-counting mechanisms
Ludovic Henry [Thu, 17 Nov 2016 22:55:53 +0000 (17:55 -0500)]
[utils] Add MonoRefCount to factor ref-counting mechanisms

7 years ago[corlib] Update list of known lcids and update CLRD data. Fixes #46456
Marek Safar [Mon, 21 Nov 2016 15:49:30 +0000 (16:49 +0100)]
[corlib] Update list of known lcids and update CLRD data. Fixes #46456

7 years agoIgnore disconnected interfaces in HttpListenerRequestTest.HttpRequestIsLocal
Niklas Therning [Tue, 22 Nov 2016 13:27:59 +0000 (14:27 +0100)]
Ignore disconnected interfaces in HttpListenerRequestTest.HttpRequestIsLocal

This test creates an HttpListener for every IP address of all network
interfaces. On Windows disconnected network interfaces have unroutable IP
addresses (169.254.XXX.XXX) and this test fails when it tries to listen to
such an IP address. This patch adds a check to the test to ignore network
interfaces which don't have OperationalStatus == Up.

7 years agoMerge pull request #3998 from ntherning/fix-assert-in-poll_event_wait-on-WSAENOTSOCK...
Niklas Therning [Tue, 22 Nov 2016 10:36:04 +0000 (11:36 +0100)]
Merge pull request #3998 from ntherning/fix-assert-in-poll_event_wait-on-WSAENOTSOCK-on-windows

Fix assert in poll_event_wait() on WSAENOTSOCK on Windows

7 years ago[runtime] Add a test for appdomain unload + blocking tp thread. (#4000)
Zoltan Varga [Tue, 22 Nov 2016 01:51:05 +0000 (20:51 -0500)]
[runtime] Add a test for appdomain unload + blocking tp thread. (#4000)

7 years ago[MacSDK] Fix typo
Alexis Christoforides [Mon, 21 Nov 2016 22:40:00 +0000 (17:40 -0500)]
[MacSDK] Fix typo

7 years ago[runtime] Add back locking around mono_class_layout_fields () to work around https...
Zoltan Varga [Mon, 21 Nov 2016 22:28:34 +0000 (17:28 -0500)]
[runtime] Add back locking around mono_class_layout_fields () to work around https://bugzilla.xamarin.com/show_bug.cgi?id=47156.

7 years agoThreadpool appdomain unload cleanup (#3996)
Zoltan Varga [Mon, 21 Nov 2016 21:59:02 +0000 (16:59 -0500)]
Threadpool appdomain unload cleanup (#3996)

* [runtime] Move the threadpool related data from MonoDomain to ThreadPoolDomain.

* [runtime] Simplify the waiting for tp threads in the domain unload code. Use a condvar to wait for the active+outstanding number of jobs to reach 0.

7 years ago[tests] Rework how we do disabled tests
Ludovic Henry [Fri, 18 Nov 2016 19:15:06 +0000 (14:15 -0500)]
[tests] Rework how we do disabled tests

7 years agoMerge pull request #3988 from lambdageek/dev-handles-srmodule
Aleksey Kliger (λgeek) [Mon, 21 Nov 2016 14:43:07 +0000 (09:43 -0500)]
Merge pull request #3988 from lambdageek/dev-handles-srmodule

[coop] Use handles in System.Reflection.Module and System.Reflection.Assembly

7 years agoFix assert in poll_event_wait() on WSAENOTSOCK on Windows
Niklas Therning [Mon, 21 Nov 2016 09:17:40 +0000 (10:17 +0100)]
Fix assert in poll_event_wait() on WSAENOTSOCK on Windows

On Windows poll_event_wait() in threadpool-ms-io-poll.c checks
WSAGetLastError() when mono_poll() fails. However, mono_poll() sets errno
after converting the WSAXXX error code (e.g. WSAEFAULT->EFAULT). Occasionally
(maybe 1 in 100) the System test suite fails due to mono_poll() returning an
error and poll_event_wait() not handling the error code correctly on Windows.

This patch changes poll_event_wait() to use the same code path which checks
errno on all platforms including Windows. It also fixes a few other places
which used to check WSAGetLastError() rather than errno after a call to
mono_poll(). Also, the Socket.Poll_internal() and Socket.Select_internal()
icalls had to be patched to convert back the errno value to a corresponding
WSAXXX error code by adding WSABASEERR on Windows.

7 years agoRevert "[runtime] Default mobile_static AOT type to FullAOT"
Marek Safar [Mon, 21 Nov 2016 13:40:23 +0000 (14:40 +0100)]
Revert "[runtime] Default mobile_static AOT type to FullAOT"

7 years agoMerge pull request #3406 from alexanderkyte/mobile_static_default
Marek Safar [Mon, 21 Nov 2016 08:54:08 +0000 (09:54 +0100)]
Merge pull request #3406 from alexanderkyte/mobile_static_default

[runtime] Default mobile_static AOT type to FullAOT

7 years ago[runtime] Add even more logging code for the class.c assertion.
Zoltan Varga [Sun, 20 Nov 2016 23:01:32 +0000 (18:01 -0500)]
[runtime] Add even more logging code for the class.c assertion.

7 years agoFix the build.
Zoltan Varga [Sun, 20 Nov 2016 16:01:47 +0000 (11:01 -0500)]
Fix the build.

7 years agoImplement SIMD support for the Vector2/3/4 classes in System.Numerics. (#3765)
Zoltan Varga [Sun, 20 Nov 2016 15:57:07 +0000 (10:57 -0500)]
Implement SIMD support for the Vector2/3/4 classes in System.Numerics. (#3765)

* [simd] Rename SimdIntrinsc->SimdIntrinsic.

* [ji] Add beginnings of support for the SIMD types in the System.Numerics assembly.

Add intrinsics for the methods marked [JitIntrinsic] in the System.Numerics.Vector2 class. Generalize some code in simd-intrinsic.c
so it works both with System.Numerics and Mono.Simd types.

* [jit] Add support for System.Numerics.Vector4.

* [jit] Add support for System.Numerics.Vector3.

* [jit] Add tests for the JIT intrinsics in System.Numerics.Vectors.

* [jit] Implement System.Numerics.Vector.IsHardwareAccelerated intrinsics.

* [jit] Fix the implementation of System.Numerics.Vector.IsHardwareAccelerated, it should return true.

* [jit] Implement some support for the SIMD intrinsics in System.Numerics.Vector<T>.

* [jit] Disable the usage of the Vector SIMD intrinsics when using r4fp until support for it is implemented.

* [jit] Fix llvm support for the Vector<T> intrinsics.

* [jit] Disable the Vector<T> tests since they don't compile yet.

* [jit] Add an optimization for the typeof(T)==typeof(<concrete type>) construct common in some generics code.

* [simd] Only return true from IsHardwareAccelerated () if simd_supported_versions is non-zero.

* [simd] Add support for add/sub/mul/div operations on Vector<T>.

7 years ago[System] WebClient async request on file streams. Fixes #46538
Marek Safar [Sun, 20 Nov 2016 10:34:26 +0000 (11:34 +0100)]
[System] WebClient async request on file streams. Fixes #46538

7 years ago[runtime] Add more debug code to help debug a class.c assert.
Zoltan Varga [Sat, 19 Nov 2016 20:23:25 +0000 (15:23 -0500)]
[runtime] Add more debug code to help debug a class.c assert.

7 years ago[corlib] Don't crash when calling Evidence on AssemblyBuilder. Fixes #46739
Marek Safar [Fri, 18 Nov 2016 22:37:54 +0000 (23:37 +0100)]
[corlib] Don't crash when calling Evidence on AssemblyBuilder. Fixes #46739

7 years ago[sgen] Fix sgen_qsort.
Jon Purdy [Thu, 3 Nov 2016 19:36:09 +0000 (12:36 -0700)]
[sgen] Fix sgen_qsort.

sgen_qsort sometimes had pathological behavior due to a poor choice of
pivot. This implementation uses the median-of-three strategy, and limits
stack depth by avoiding recursive calls when possible.

7 years agoRevert "[process] Allocate a handle even for non-child processes"
Ludovic Henry [Fri, 18 Nov 2016 16:12:24 +0000 (11:12 -0500)]
Revert "[process] Allocate a handle even for non-child processes"

This reverts commit d6928839015effec6358d7bc9c7b1b547645140a.

7 years agoRevert "[runtime] Change the thread wait code to use cond variables instead o… (...
Zoltan Varga [Fri, 18 Nov 2016 20:41:32 +0000 (15:41 -0500)]
Revert "[runtime] Change the thread wait code to use cond variables instead o… (#3946)"

This reverts commit 4a1161e2d691672e8544ce5a3e20e5c08daa4f45.

Revert this, keep the event based code for now.

7 years agoRevert "[runtime] Fix the waiting for background threads which got broken by 4a1161e2...
Zoltan Varga [Fri, 18 Nov 2016 20:40:26 +0000 (15:40 -0500)]
Revert "[runtime] Fix the waiting for background threads which got broken by 4a1161e2d691672e8544ce5a3e20e5c08daa4f45. (#3983)"

This reverts commit dbc63ae672bcd65d87dbf4b1960904102cdcde97.

Revert this, keep the event based code for now.

7 years ago[System] Add range check for empty URI prefix when it also contains unicode character...
Marek Safar [Fri, 18 Nov 2016 16:58:05 +0000 (17:58 +0100)]
[System] Add range check for empty URI prefix when it also contains unicode character. Fixes #47205

7 years ago[reflection] Use handles for System.Reflection.Assembly.GetTypes
Aleksey Kliger [Thu, 17 Nov 2016 22:28:42 +0000 (17:28 -0500)]
[reflection] Use handles for System.Reflection.Assembly.GetTypes

Also change mono_get_exception_reflection_type_load_checked() to use handles.

7 years ago[reflection] Use coop handles for 6 icalls in System.Reflection.Module
Aleksey Kliger [Thu, 17 Nov 2016 21:03:18 +0000 (16:03 -0500)]
[reflection] Use coop handles for 6 icalls in System.Reflection.Module

- Close
- GetGlobalType
- GetHINSTANCE
- GetMDStreamVersion
- GetPEKind
- InternalGetTypes

7 years ago[coop] mono_type_get_object_handle
Aleksey Kliger [Thu, 17 Nov 2016 18:08:19 +0000 (13:08 -0500)]
[coop] mono_type_get_object_handle

7 years ago[coop] Add more handle utility functions
Aleksey Kliger [Thu, 17 Nov 2016 20:19:19 +0000 (15:19 -0500)]
[coop] Add more handle utility functions

- MONO_HANDLE_ARRAY_GETREF
- HANDLE_FUNCTION_RETURN_OBJ
- mono_array_handle_memcpy_refs

7 years ago[coop] Add mono_error_set_exception_handle
Aleksey Kliger [Thu, 17 Nov 2016 20:18:30 +0000 (15:18 -0500)]
[coop] Add mono_error_set_exception_handle

7 years agoMerge pull request #3932 from lambdageek/dev-handles-outargs
Aleksey Kliger (λgeek) [Fri, 18 Nov 2016 14:53:59 +0000 (09:53 -0500)]
Merge pull request #3932 from lambdageek/dev-handles-outargs

[coop handles] Support out args; convert some icalls.

7 years agoMerge pull request #3985 from ntherning/fix-Mono.Posix-on-windows
Niklas Therning [Fri, 18 Nov 2016 13:30:22 +0000 (14:30 +0100)]
Merge pull request #3985 from ntherning/fix-Mono.Posix-on-windows

Fix Mono.Posix tests on Windows

7 years agoMerge pull request #3948 from henricm/fix-pinvoke-utf8-windows
Henric Müller [Fri, 18 Nov 2016 06:11:17 +0000 (07:11 +0100)]
Merge pull request #3948 from henricm/fix-pinvoke-utf8-windows

Fix crash on Windows in PInvoke UTF8 tests

7 years ago[configure.ac] Factor common code for runtime preset
Ludovic Henry [Thu, 17 Nov 2016 16:08:28 +0000 (11:08 -0500)]
[configure.ac] Factor common code for runtime preset

7 years ago[configure] Add hybrid runtime preset
Ludovic Henry [Fri, 5 Aug 2016 18:17:14 +0000 (20:17 +0200)]
[configure] Add hybrid runtime preset

It is very close to the Full AOT profile (mobile static), but as the JIT is available, we still allow features like System.Reflection.Emit.

7 years agoMerge pull request #3987 from ntherning/fix-support-stdio-compile-error-on-android
Niklas Therning [Thu, 17 Nov 2016 21:20:58 +0000 (22:20 +0100)]
Merge pull request #3987 from ntherning/fix-support-stdio-compile-error-on-android

Fixes compile error in support/stdio.c on XA

7 years agoFixes compile error in support/stdio.c on XA
Niklas Therning [Thu, 17 Nov 2016 21:14:24 +0000 (22:14 +0100)]
Fixes compile error in support/stdio.c on XA

7 years agoFixed arrays pinvoke (#3972)
Zoltan Varga [Thu, 17 Nov 2016 19:38:27 +0000 (14:38 -0500)]
Fixed arrays pinvoke (#3972)

* [amd64] Use a GArray to collect field information in add_valuetype ().

* [amd64] Fix the marshalling of fixed buffers by treating them as an array of elements.

7 years ago[sdb] Error out when trying to obtain objects from unloaded domains, we have to check...
Zoltan Varga [Thu, 17 Nov 2016 19:07:04 +0000 (14:07 -0500)]
[sdb] Error out when trying to obtain objects from unloaded domains, we have to check domain->state as well since the object references become invalid before we received the domain unloaded profiler event. Fixes #44381.

7 years agoMerge pull request #3968 from BrzVlad/fix-monitor-exception
Vlad Brezae [Thu, 17 Nov 2016 18:40:14 +0000 (20:40 +0200)]
Merge pull request #3968 from BrzVlad/fix-monitor-exception

[runtime] Fix monitor exception throwing

7 years agoMerge pull request #3979 from radical/fix-xbuild-tgt
Ankit Jain [Thu, 17 Nov 2016 18:22:49 +0000 (13:22 -0500)]
Merge pull request #3979 from radical/fix-xbuild-tgt

[xbuild] Handle a repeat build of a target, when building through ..

7 years ago[runtime] Add some printfs to help debug the g_assert (klass->instance_size == instan...
Zoltan Varga [Thu, 17 Nov 2016 18:06:33 +0000 (13:06 -0500)]
[runtime] Add some printfs to help debug the g_assert (klass->instance_size == instance_size); assert failure.

7 years ago[mcs] Fixes user operator extraction from shared list. Fixes #46806
Marek Safar [Thu, 17 Nov 2016 17:40:45 +0000 (18:40 +0100)]
[mcs] Fixes user operator extraction from shared list. Fixes #46806

7 years ago[coop] Fix mono_stack_mark_pop
Aleksey Kliger [Wed, 16 Nov 2016 21:44:56 +0000 (16:44 -0500)]
[coop] Fix mono_stack_mark_pop

We need to restore the old size into the old top chunk, not the current
top chunk.

7 years ago[runtime] Use handles for System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray
Aleksey Kliger [Mon, 14 Nov 2016 18:48:23 +0000 (13:48 -0500)]
[runtime] Use handles for System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray

7 years ago[runtime] Use coop handles for System.Enum.GetEnumValuesAndNames
Aleksey Kliger [Thu, 10 Nov 2016 22:00:21 +0000 (17:00 -0500)]
[runtime] Use coop handles for System.Enum.GetEnumValuesAndNames

7 years ago[coop] Marshal out args for icalls using handles.
Aleksey Kliger [Tue, 8 Nov 2016 21:46:34 +0000 (16:46 -0500)]
[coop] Marshal out args for icalls using handles.

7 years ago[coop] Use coop handles for Mono.Runtime.GetNativeStackTrace
Aleksey Kliger [Tue, 8 Nov 2016 16:37:54 +0000 (11:37 -0500)]
[coop] Use coop handles for Mono.Runtime.GetNativeStackTrace

Implement mono_exception_get_native_backtrace in terms of mono_exception_handle_get_native_backtrace.

7 years ago[coop] Functions to convert coop handles to gchandles and back
Aleksey Kliger [Thu, 17 Nov 2016 15:57:52 +0000 (10:57 -0500)]
[coop] Functions to convert coop handles to gchandles and back

7 years agoMerge pull request #3965 from akoeplinger/ppc-disable-tests
Alexander Köplinger [Thu, 17 Nov 2016 15:58:00 +0000 (16:58 +0100)]
Merge pull request #3965 from akoeplinger/ppc-disable-tests

[ppc64] Disable a few runtime/bcl tests that currently fail

7 years ago[runtime] Fix the waiting for background threads which got broken by 4a1161e2d691672e...
Zoltan Varga [Thu, 17 Nov 2016 14:49:21 +0000 (09:49 -0500)]
[runtime] Fix the waiting for background threads which got broken by 4a1161e2d691672e8544ce5a3e20e5c08daa4f45. (#3983)

7 years agoMerge pull request #3953 from rolfbjarne/offsets-tool-autoreclone
João Matos [Thu, 17 Nov 2016 13:29:27 +0000 (13:29 +0000)]
Merge pull request #3953 from rolfbjarne/offsets-tool-autoreclone

[offsets-tool] Make sure to re-clone when the hash for the cpp binaries changes.