mono.git
7 years agoMerge pull request #2903 from krytarowski/netbsd-support-4
Alexander Köplinger [Mon, 8 Aug 2016 09:47:08 +0000 (11:47 +0200)]
Merge pull request #2903 from krytarowski/netbsd-support-4

Implement mremap(2) usage on NetBSD

7 years agoFix the loaded llvm build.
Zoltan Varga [Sun, 7 Aug 2016 23:40:17 +0000 (01:40 +0200)]
Fix the loaded llvm build.

7 years agoMerge pull request #3370 from ludovic-henry/fix-finalizer-wait
Ludovic Henry [Sun, 7 Aug 2016 16:58:45 +0000 (18:58 +0200)]
Merge pull request #3370 from ludovic-henry/fix-finalizer-wait

[gc] Fix crash when doing WaitForPendingFinalizers

7 years ago[gc] Fix crash when doing WaitForPendingFinalizers
Ludovic Henry [Sun, 7 Aug 2016 11:45:56 +0000 (13:45 +0200)]
[gc] Fix crash when doing WaitForPendingFinalizers

The crash would come from a use-after-free of stack memory: in coop_cond_timedwait_alertable, we would allocate the struct we pass to the mono_thread_info_install_interrupt function on the stack. But there is no guarantee as to when break_coop_alertable_wait is run. The fix is to allocate the data passed to mono_thread_info_install_interrupt on the heap, and free it in the callback, or if it hasn't been interrupted.

7 years ago[x86] Only pinvoke methods are stdcall. (#3354)
Vincent Povirk [Sun, 7 Aug 2016 07:29:41 +0000 (02:29 -0500)]
[x86] Only pinvoke methods are stdcall. (#3354)

For xamarin bug 30146.

7 years ago[runtime] Fix the loaded llvm build.
Zoltan Varga [Sat, 6 Aug 2016 17:03:34 +0000 (13:03 -0400)]
[runtime] Fix the loaded llvm build.

7 years agoMerge pull request #3356 from marek-safar/cecil-update
Marek Safar [Sat, 6 Aug 2016 07:31:04 +0000 (09:31 +0200)]
Merge pull request #3356 from marek-safar/cecil-update

Cecil update

7 years ago[runtime] Store the original invoke method in WrapperInfo for delegate invokes, use...
Zoltan Varga [Fri, 5 Aug 2016 22:58:58 +0000 (18:58 -0400)]
[runtime] Store the original invoke method in WrapperInfo for delegate invokes, use that to fix the check in find_aot_method_in_amodule ().

7 years ago[monosymbolicate] Update project file
Marek Safar [Fri, 5 Aug 2016 15:49:58 +0000 (17:49 +0200)]
[monosymbolicate] Update project file

7 years ago[Mono.Cecil] Add special handling of legacy 0.9.5 version
Marek Safar [Fri, 5 Aug 2016 12:39:55 +0000 (14:39 +0200)]
[Mono.Cecil] Add special handling of legacy 0.9.5 version

7 years ago[mono-symbolicate] Better test failure reporting
Marek Safar [Fri, 5 Aug 2016 11:35:30 +0000 (13:35 +0200)]
[mono-symbolicate] Better test failure reporting

7 years ago[mdoc] Update project file
Marek Safar [Fri, 5 Aug 2016 10:43:19 +0000 (12:43 +0200)]
[mdoc] Update project file

7 years ago[Mono.Contract] Less obsolete warnings
Marek Safar [Thu, 4 Aug 2016 11:33:46 +0000 (13:33 +0200)]
[Mono.Contract] Less obsolete warnings

7 years ago[bcl] Reflect cecil breaking changes
Marek Safar [Wed, 3 Aug 2016 09:07:33 +0000 (11:07 +0200)]
[bcl] Reflect cecil breaking changes

7 years agoUpdate Cecil to the latest master
Marek Safar [Mon, 1 Aug 2016 15:55:19 +0000 (17:55 +0200)]
Update Cecil to the latest master

7 years agoMerge pull request #3363 from akoeplinger/fix-42938
Alexander Köplinger [Fri, 5 Aug 2016 20:54:59 +0000 (22:54 +0200)]
Merge pull request #3363 from akoeplinger/fix-42938

[xbuild] Use the xbuild ToolsVersion even if another one is specified in the csproj

7 years ago[arm] Fix aot support in the sdb soft breakpoint trampolines.
Zoltan Varga [Fri, 5 Aug 2016 20:29:14 +0000 (16:29 -0400)]
[arm] Fix aot support in the sdb soft breakpoint trampolines.

7 years ago[ci] Don't build mobile profiles in a monolite build
Alexander Köplinger [Fri, 5 Aug 2016 17:44:48 +0000 (19:44 +0200)]
[ci] Don't build mobile profiles in a monolite build

The mobile profiles rely on system resgen2 which is not present in a monolite build.

7 years agoMerge pull request #3359 from ntherning/sgen-avoid-scanning-stack-guard-page-on-windows
Niklas Therning [Fri, 5 Aug 2016 17:25:39 +0000 (19:25 +0200)]
Merge pull request #3359 from ntherning/sgen-avoid-scanning-stack-guard-page-on-windows

Prevent SGen from scanning the guard page used by Windows to dynamically grow the stack

7 years agoMerge pull request #3361 from xmcclure/babysitter-xml
Alexander Köplinger [Fri, 5 Aug 2016 16:58:44 +0000 (18:58 +0200)]
Merge pull request #3361 from xmcclure/babysitter-xml

Add mono/tests support to CI babysitter

7 years agoMerge pull request #3365 from ntherning/fix-gc-graystack-stress-on-win64
Niklas Therning [Fri, 5 Aug 2016 15:16:28 +0000 (17:16 +0200)]
Merge pull request #3365 from ntherning/fix-gc-graystack-stress-on-win64

Fixes the mono/tests/gc-graystack-stress test on Windows x64

7 years agoMerge pull request #3337 from akoeplinger/fix-alpine
Alexander Köplinger [Fri, 5 Aug 2016 14:50:04 +0000 (16:50 +0200)]
Merge pull request #3337 from akoeplinger/fix-alpine

Fix Alpine build

7 years ago[ci] Add a CI_TAGS option for building with monolite
Alexander Köplinger [Wed, 3 Aug 2016 14:08:30 +0000 (16:08 +0200)]
[ci] Add a CI_TAGS option for building with monolite

Also ensure that all the CI_TAGS check work with multiple values.

7 years ago[ci] Run "make" in parallel in run-jenkins.sh
Alexander Köplinger [Tue, 2 Aug 2016 15:48:06 +0000 (17:48 +0200)]
[ci] Run "make" in parallel in run-jenkins.sh

To speed up the build.

7 years agoMerge pull request #3288 from ludovic-henry/iolayer-extract-threading
Ludovic Henry [Fri, 5 Aug 2016 13:05:34 +0000 (15:05 +0200)]
Merge pull request #3288 from ludovic-henry/iolayer-extract-threading

[io-layer] Extract threading code

7 years agoPrevent SGen from scanning the guard page used by Windows to dynamically grow
Niklas Therning [Thu, 4 Aug 2016 14:51:57 +0000 (16:51 +0200)]
Prevent SGen from scanning the guard page used by Windows to dynamically grow
the stack.

Windows uses a guard page before the committed stack memory pages to detect
when the stack needs to be grown. If we suspend a thread just after a function
prolog has decremented the stack pointer to point into the guard page but
before the thread has been able to read or write to that page, starting the
stack scan at the thread's ESP/RSP will raise a STATUS_GUARD_PAGE_VIOLATION and
the process will crash.

This patch uses VirtualQuery() to determine whether the thread's stack_start
value points into the guard page. If it does the stack scan will instead be
started at the following, non-guard page.

7 years agoBump binary-reference-assemblies
Marek Safar [Fri, 5 Aug 2016 12:28:38 +0000 (14:28 +0200)]
Bump binary-reference-assemblies

7 years agoFixes the mono/tests/gc-graystack-stress test on Windows x64
Niklas Therning [Fri, 5 Aug 2016 12:18:27 +0000 (14:18 +0200)]
Fixes the mono/tests/gc-graystack-stress test on Windows x64

Windows x64 only has 1 MB of stack per thread which is less than other x86
64-bit OSes. Using 10000 for "depth" in this test causes a stack overflow on
Windows x64. This patch changes "depth" to 5000 only on Windows x64. 5000 will
fit within the default stack size.

7 years agoMerge pull request #3355 from ludovic-henry/process-fix-exited
Ludovic Henry [Fri, 5 Aug 2016 08:59:21 +0000 (10:59 +0200)]
Merge pull request #3355 from ludovic-henry/process-fix-exited

[process] Fix Process.Exited event triggered too soon

7 years agoRemove stray comment
Miguel de Icaza [Fri, 5 Aug 2016 03:56:46 +0000 (23:56 -0400)]
Remove stray comment

7 years ago[arm] Fix the initialization of the variable holding the single step trampoline addre...
Zoltan Varga [Thu, 4 Aug 2016 22:15:30 +0000 (18:15 -0400)]
[arm] Fix the initialization of the variable holding the single step trampoline address when using soft breakpoints + aot.

7 years agoMerge pull request #3360 from alexanderkyte/mini_fix_timeout
Alexander Kyte [Thu, 4 Aug 2016 20:03:14 +0000 (16:03 -0400)]
Merge pull request #3360 from alexanderkyte/mini_fix_timeout

[runtime] Increase mini bitcode timeout and add parallelism

7 years ago[mobile_static] Give bitcode mini tests parallelism and more time
Alexander Kyte [Thu, 4 Aug 2016 19:59:17 +0000 (15:59 -0400)]
[mobile_static] Give bitcode mini tests parallelism and more time

7 years ago[xbuild] Use the xbuild ToolsVersion even if another one is specified in the csproj
Alexander Köplinger [Thu, 4 Aug 2016 19:53:46 +0000 (21:53 +0200)]
[xbuild] Use the xbuild ToolsVersion even if another one is specified in the csproj

This is the recent behavior in .NET/MSBuild as well [1]:

> Starting in Visual Studio 2013, the MSBuild Toolset version is the same
> as the Visual Studio version number. MSBuild defaults to this Toolset
> within Visual Studio and on the command line, regardless of the
> toolset version specified in project file.

With this change xbuild will always use its own version instead
of the one specified in the project, unlessa ToolsVersion is forced
via the /tv switch on the command line.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=42938

[1] https://msdn.microsoft.com/en-us/library/bb383796.aspx#Anchor_1

7 years agoAdd NUnit XML support to test babysitter, also document the communication protocol...
Andi McClure [Thu, 4 Aug 2016 19:09:34 +0000 (15:09 -0400)]
Add NUnit XML support to test babysitter, also document the communication protocol better

For test harnesses which don't support the full babysitter protocol,
the test harness can now report back paths to NUnit-format XML files
containing test results, or the paths to those XML files can be given
by whoever invoked the babysitter script. Failures listed in the XMLs
are included in the babysitter log.

test-runner.cs has been modified to report its XMLs, so we should now
see mono/tests failures in the babysitter log.

7 years agoMerge pull request #3357 from tritao/zip_delete_entries
João Matos [Thu, 4 Aug 2016 17:27:37 +0000 (18:27 +0100)]
Merge pull request #3357 from tritao/zip_delete_entries

[System.IO.Compression] Remove the entry from ZipArchive entries when its deleted

7 years ago[process] Fix Process.Exited event triggered too early
Ludovic Henry [Thu, 4 Aug 2016 10:30:35 +0000 (12:30 +0200)]
[process] Fix Process.Exited event triggered too early

The Process.Exited event would be triggered too early, leading to crash in code using this event to access the process exit code. This is because in Process.ExitCode, we first check that the process has really exited.

7 years agoMerge pull request #3358 from ntherning/disable-sgen-red-zone-on-win64
Niklas Therning [Thu, 4 Aug 2016 14:45:59 +0000 (16:45 +0200)]
Merge pull request #3358 from ntherning/disable-sgen-red-zone-on-win64

Set SGen's REDZONE_SIZE=0 on Win64

7 years agoSet SGen's REDZONE_SIZE=0 on Win64 since the ABI defines no red zone and the
Niklas Therning [Thu, 4 Aug 2016 14:07:11 +0000 (16:07 +0200)]
Set SGen's REDZONE_SIZE=0 on Win64 since the ABI defines no red zone and the
ABI states that "All memory beyond the current address of RSP is considered
volatile".

On Windows the stack grows dynamically as the thread needs more stack space.
Windows places a guard page before the page at the top of stack and when this
guard page is accessed by the thread Windows will add a new page to the stack
and resume the thread.

Before this fix SGen on Win64 subtracted 128 from the stack pointer of a
suspended thread and started the stack scan from this address. In the case
when the stack pointer would be less than 128 from the start of the memory
page SGen would attempt to read from the previous page. If this happens to be
the guard page a STATUS_GUARD_PAGE_VIOLATION exception is raised and the
process crashes. The sgen-weakref-stress.exe triggered this bug on almost
every invocation.

7 years ago[io-layer] Remove threads.h, thread-private.h and wthreads.c
Ludovic Henry [Thu, 7 Jul 2016 17:44:03 +0000 (19:44 +0200)]
[io-layer] Remove threads.h, thread-private.h and wthreads.c

7 years ago[io-layer] Remove unused _WAPI_THREAD_CURRENT
Ludovic Henry [Fri, 15 Jul 2016 01:55:42 +0000 (03:55 +0200)]
[io-layer] Remove unused _WAPI_THREAD_CURRENT

7 years ago[io-layer] Extract thread MonoW32HandleOps
Ludovic Henry [Thu, 7 Jul 2016 17:31:50 +0000 (19:31 +0200)]
[io-layer] Extract thread MonoW32HandleOps

7 years ago[io-layer] Extract GetThreadPriority and SetThreadPriority
Ludovic Henry [Thu, 7 Jul 2016 17:13:11 +0000 (19:13 +0200)]
[io-layer] Extract GetThreadPriority and SetThreadPriority

7 years ago[io-layer] Extract wapi_create_thread_handle
Ludovic Henry [Thu, 7 Jul 2016 16:26:17 +0000 (18:26 +0200)]
[io-layer] Extract wapi_create_thread_handle

7 years ago[io-layer] Extract wapi_thread_own_mutex and wapi_thread_disown_mutex
Ludovic Henry [Thu, 7 Jul 2016 15:27:49 +0000 (17:27 +0200)]
[io-layer] Extract wapi_thread_own_mutex and wapi_thread_disown_mutex

7 years ago[io-layer] Extract wapi_current_thread_desc
Ludovic Henry [Thu, 7 Jul 2016 15:07:40 +0000 (17:07 +0200)]
[io-layer] Extract wapi_current_thread_desc

7 years ago[io-layer] Extract wapi_ref_thread_handle
Ludovic Henry [Thu, 7 Jul 2016 14:51:06 +0000 (16:51 +0200)]
[io-layer] Extract wapi_ref_thread_handle

7 years ago[io-layer] Remove _wapi_thread_cur_apc_pending
Ludovic Henry [Thu, 7 Jul 2016 14:48:58 +0000 (16:48 +0200)]
[io-layer] Remove _wapi_thread_cur_apc_pending

7 years ago[io-layer] Extract wapi_get_current_thread_handle
Ludovic Henry [Thu, 7 Jul 2016 14:37:47 +0000 (16:37 +0200)]
[io-layer] Extract wapi_get_current_thread_handle

7 years ago[io-layer] Extract wapi_thread_handle_set_exited
Ludovic Henry [Thu, 7 Jul 2016 13:59:16 +0000 (15:59 +0200)]
[io-layer] Extract wapi_thread_handle_set_exited

7 years ago[io-layer] Make _wapi_getpid, _wapi_thread_own_mutex, _wapi_thread_disown_mutex and...
Ludovic Henry [Thu, 7 Jul 2016 12:25:35 +0000 (14:25 +0200)]
[io-layer] Make _wapi_getpid, _wapi_thread_own_mutex, _wapi_thread_disown_mutex and _wapi_mutex_abandon functions public

7 years ago[io-layer] Make _WapiHandle_thread struct public
Ludovic Henry [Wed, 6 Jul 2016 13:17:50 +0000 (15:17 +0200)]
[io-layer] Make _WapiHandle_thread struct public

7 years ago[mono-threads] Split platform and suspend specific functions
Ludovic Henry [Wed, 6 Jul 2016 13:08:06 +0000 (15:08 +0200)]
[mono-threads] Split platform and suspend specific functions

We split mono-threads-{posix,windows,mach}.c functions in 2 categories:
 - platform: depends on the host the runtime is compiled on (possible values: posix or windows)
 - suspend: depends on the mono-threads suspend backend in use (possible values: posix, windows or mach)

7 years ago[io-layer] Make wait.c not depend on _wapi_thread_cur_apc_pending
Ludovic Henry [Wed, 6 Jul 2016 12:25:44 +0000 (14:25 +0200)]
[io-layer] Make wait.c not depend on _wapi_thread_cur_apc_pending

7 years ago[System.IO.Compression] Remove the entry from ZipArchive entries when its deleted...
João Matos [Thu, 4 Aug 2016 12:21:13 +0000 (13:21 +0100)]
[System.IO.Compression] Remove the entry from ZipArchive entries when its deleted. Fixes #43022.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=43022.

7 years ago[mcs] Better error reporting for missing types during conversion
Marek Safar [Thu, 4 Aug 2016 10:57:12 +0000 (12:57 +0200)]
[mcs] Better error reporting for missing types during conversion

7 years ago[build] Update order.xml data
Miguel de Icaza [Thu, 4 Aug 2016 03:14:51 +0000 (23:14 -0400)]
[build] Update order.xml data

7 years ago[arm64] Assert that the displacement is not out of range int he b/bl macros, instead...
Zoltan Varga [Wed, 3 Aug 2016 23:50:11 +0000 (19:50 -0400)]
[arm64] Assert that the displacement is not out of range int he b/bl macros, instead of in arm_get_disp (), so the assert location is more meaningful.

7 years agoMerge pull request #3352 from alexanderkyte/mini_bitcode_fix
Alexander Kyte [Wed, 3 Aug 2016 17:35:21 +0000 (13:35 -0400)]
Merge pull request #3352 from alexanderkyte/mini_bitcode_fix

[runtime] Provide Mono.Simd.dll to llvmonlycheck+fullaotcheck

7 years ago[runtime] Provide Mono.Simd.dll to llvmonlycheck+fullaotcheck
Alexander Kyte [Wed, 3 Aug 2016 17:23:58 +0000 (13:23 -0400)]
[runtime] Provide Mono.Simd.dll to llvmonlycheck+fullaotcheck

7 years agoMerge pull request #3351 from kasthack/patch-2
Alexander Köplinger [Wed, 3 Aug 2016 16:31:35 +0000 (18:31 +0200)]
Merge pull request #3351 from kasthack/patch-2

Added missing DeliveryFormat property to MailClient

7 years ago[arm] Initialize breakpoint_tramp later in full aot mode, its not available in arch_i...
Zoltan Varga [Wed, 3 Aug 2016 15:31:48 +0000 (11:31 -0400)]
[arm] Initialize breakpoint_tramp later in full aot mode, its not available in arch_init ().

7 years agoAdded missing DeliveryFormat property to MailClient
Konstantin Safonov [Wed, 3 Aug 2016 14:50:53 +0000 (17:50 +0300)]
Added missing DeliveryFormat property to MailClient

Doesn't actually change the behavior but at least allows to build sources referencing it on mono.
https://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.deliveryformat(v=vs.110).aspx

7 years agoMerge pull request #3347 from lambdageek/coop-abort-ignore-unhandled
Aleksey Kliger (λgeek) [Wed, 3 Aug 2016 14:29:33 +0000 (10:29 -0400)]
Merge pull request #3347 from lambdageek/coop-abort-ignore-unhandled

[coop] Don't call unhandled exn hook for ThreadAbortException

7 years ago[mcs] More tweaks in betterness improvements. Fixes #41724
Marek Safar [Tue, 2 Aug 2016 18:54:03 +0000 (20:54 +0200)]
[mcs] More tweaks in betterness improvements. Fixes #41724

7 years ago[coop] Don't call unhandled exn hook for ThreadAbortException
Aleksey Kliger [Tue, 2 Aug 2016 16:32:24 +0000 (12:32 -0400)]
[coop] Don't call unhandled exn hook for ThreadAbortException

Fixes the weird Jenkins logs for the coop job.

7 years agoMerge pull request #3344 from alexanderkyte/propagate_mono_error_async
Aleksey Kliger (λgeek) [Tue, 2 Aug 2016 15:31:44 +0000 (11:31 -0400)]
Merge pull request #3344 from alexanderkyte/propagate_mono_error_async

[runtime] Propagate async MonoError to AsyncResult

7 years ago[bcl] Don't build not installed mobile assemblies
Marek Safar [Tue, 2 Aug 2016 08:22:05 +0000 (10:22 +0200)]
[bcl] Don't build not installed mobile assemblies

7 years agoMerge pull request #3340 from lambdageek/dev/invoke-unhandled-exception-hook
Aleksey Kliger (λgeek) [Mon, 1 Aug 2016 23:22:43 +0000 (19:22 -0400)]
Merge pull request #3340 from lambdageek/dev/invoke-unhandled-exception-hook

[runtime] Move mono_invoke_unhandled_exception_hook to metadata

7 years agoMerge pull request #3345 from alexanderkyte/fix_mini_aot_flags
Alexander Kyte [Mon, 1 Aug 2016 21:17:07 +0000 (17:17 -0400)]
Merge pull request #3345 from alexanderkyte/fix_mini_aot_flags

[runtime] Pass invariant AOT options to mini aot tests

7 years agoMerge pull request #3269 from alexanderkyte/silence_zero_len
Alexander Kyte [Mon, 1 Aug 2016 20:41:45 +0000 (16:41 -0400)]
Merge pull request #3269 from alexanderkyte/silence_zero_len

[runtime] Disable noisy warning

7 years ago[test] Fix sporadic Mono.Debugger.Soft ThreadpoolIOsinglestep failure.
Aleksey Kliger [Mon, 1 Aug 2016 20:13:00 +0000 (16:13 -0400)]
[test] Fix sporadic Mono.Debugger.Soft ThreadpoolIOsinglestep failure.

ReadAsync size arg should not be greater than array.Length - offset.

7 years agoFix the build.
Zoltan Varga [Mon, 1 Aug 2016 19:36:58 +0000 (15:36 -0400)]
Fix the build.

7 years ago[runtime] Propagate async MonoError to AsyncResult
Alexander Kyte [Mon, 1 Aug 2016 19:01:45 +0000 (15:01 -0400)]
[runtime] Propagate async MonoError to AsyncResult

7 years ago[runtime] Implement WaitForPendingFinalizers used cond vars instead of io-layer event...
Zoltan Varga [Mon, 1 Aug 2016 19:22:57 +0000 (15:22 -0400)]
[runtime] Implement WaitForPendingFinalizers used cond vars instead of io-layer events. (#3315)

7 years ago[threads] Call mono_invoke_unhandled_exception hook in mono_thread_internal_unhandled...
Aleksey Kliger [Mon, 1 Aug 2016 14:38:16 +0000 (10:38 -0400)]
[threads] Call mono_invoke_unhandled_exception hook in mono_thread_internal_unhandled_exception.

When a GC or threadpool thread dies due to an unhandled exception,
invoke the unhandled exception hook to exit, instead of exiting directly.

7 years ago[runtime] Pass invariant AOT options to mini aot tests
Alexander Kyte [Thu, 28 Jul 2016 22:48:20 +0000 (18:48 -0400)]
[runtime] Pass invariant AOT options to mini aot tests

7 years agoBump to include the F# bockbuild patch
Alexander Köplinger [Mon, 1 Aug 2016 18:25:16 +0000 (20:25 +0200)]
Bump to include the F# bockbuild patch

7 years ago[arm] Use soft breakpoints on watchos.
Zoltan Varga [Mon, 1 Aug 2016 17:11:30 +0000 (13:11 -0400)]
[arm] Use soft breakpoints on watchos.

7 years agoMerge pull request #3342 from ludovic-henry/gc-domain-finalizer-sem
Ludovic Henry [Mon, 1 Aug 2016 16:17:09 +0000 (18:17 +0200)]
Merge pull request #3342 from ludovic-henry/gc-domain-finalizer-sem

[gc] Replace domain finalizer request cond+mutex by a semaphore

7 years agoMerge pull request #3335 from lambdageek/dev/system-reflection-assembly
Aleksey Kliger (λgeek) [Mon, 1 Aug 2016 14:41:37 +0000 (10:41 -0400)]
Merge pull request #3335 from lambdageek/dev/system-reflection-assembly

[reflection] Move AssemblyName to managed

7 years ago[llvm] In default_mono_llvm_unhandled_exception call mono_invoke_unhandled_exception_...
Aleksey Kliger [Mon, 1 Aug 2016 14:37:38 +0000 (10:37 -0400)]
[llvm] In default_mono_llvm_unhandled_exception call mono_invoke_unhandled_exception_hook to exit

instead of exiting directly.

7 years ago[Facades] Emit symbol files for lib like facades
Marek Safar [Mon, 1 Aug 2016 11:12:44 +0000 (13:12 +0200)]
[Facades] Emit symbol files for lib like facades

7 years ago[man] Fix typo in environment variable name
Alexander Köplinger [Mon, 1 Aug 2016 10:12:29 +0000 (12:12 +0200)]
[man] Fix typo in environment variable name

The section was added in 410a200ecd07f5e53ffea858d204b3bbf88d311d but with the wrong name.

7 years ago[gc] Fix timeout in mono_domain_finalize
Ludovic Henry [Sat, 30 Jul 2016 10:08:02 +0000 (12:08 +0200)]
[gc] Fix timeout in mono_domain_finalize

7 years ago[gc] Ensure we clean the DomainFinalizationReq
Ludovic Henry [Fri, 29 Jul 2016 23:09:18 +0000 (01:09 +0200)]
[gc] Ensure we clean the DomainFinalizationReq

7 years ago[gc] Replace domain finalizer request cond+mutex by a semaphore
Ludovic Henry [Fri, 29 Jul 2016 22:40:13 +0000 (00:40 +0200)]
[gc] Replace domain finalizer request cond+mutex by a semaphore

This is possible because we only wait for it at one place, and only post it at one other place.

7 years ago[arm] Implement support soft breakpoints + AOT.
Zoltan Varga [Sat, 30 Jul 2016 05:12:46 +0000 (05:12 +0000)]
[arm] Implement support soft breakpoints + AOT.

7 years ago[sdb] Fix an aot assert.
Zoltan Varga [Sat, 30 Jul 2016 05:12:19 +0000 (05:12 +0000)]
[sdb] Fix an aot assert.

7 years ago[corlib] Bring AssemblyName(string) to the happy C# world.
Rodrigo Kumpera [Fri, 10 Jun 2016 23:38:40 +0000 (16:38 -0700)]
[corlib] Bring AssemblyName(string) to the happy C# world.

7 years ago[corlib] Move Assembly::GetName to be implemented in managed.
Rodrigo Kumpera [Fri, 10 Jun 2016 20:31:10 +0000 (13:31 -0700)]
[corlib] Move Assembly::GetName to be implemented in managed.

This involves a few steps.

First define MonoAssemblyName in RuntimeStructs.cs

Then add some helped to decode blob arrays and handle hex digits.

Finally, move the actual implementation from native to managed.

7 years agoMerge pull request #3320 from lambdageek/dev/reflection-in-managed
Aleksey Kliger (λgeek) [Fri, 29 Jul 2016 20:05:32 +0000 (16:05 -0400)]
Merge pull request #3320 from lambdageek/dev/reflection-in-managed

[reflection] Marshal name strings from managed

7 years ago[runtime] Move mono_invoke_unhandled_exception_hook to metadata
Aleksey Kliger [Fri, 29 Jul 2016 16:55:35 +0000 (12:55 -0400)]
[runtime] Move mono_invoke_unhandled_exception_hook to metadata

And call it consistently in thread start functions when the managed
thread start function returns with an exception.

(If coop is not enabled, the exception handler unwinds the thread and
when there's no handler invokes the unhandled exception hook via
jit_tls->abort_func, so this is just for the coop case.)

Fixes mono/tests/unhandled-exception-1.cs for coop and bitcode.

7 years ago[reflection] Marshal name arg of RuntimeType.GetNestedTypes in managed code
Aleksey Kliger [Tue, 19 Jul 2016 23:22:43 +0000 (19:22 -0400)]
[reflection] Marshal name arg of RuntimeType.GetNestedTypes in managed code

Also do the name unmangling on the managed side.

7 years ago[reflection] RuntimeType.GetNestedTypes in managed
Aleksey Kliger [Fri, 15 Jul 2016 19:55:52 +0000 (15:55 -0400)]
[reflection] RuntimeType.GetNestedTypes in managed

7 years ago[reflection] Marshal name arg to some RuntimeType search methods
Aleksey Kliger [Tue, 19 Jul 2016 22:46:29 +0000 (18:46 -0400)]
[reflection] Marshal name arg to some RuntimeType search methods

Marshal the name argument of Get{Methods,Properties}ByName,Get{Fields,Events}
in managed code.

Cleanup the corresponding icalls.

7 years ago[corlib] Add Mono.SafeStringMarshal struct
Aleksey Kliger [Tue, 19 Jul 2016 21:51:48 +0000 (17:51 -0400)]
[corlib] Add Mono.SafeStringMarshal struct

Allows safe allocation of native utf8 char* strings from managed
strings.

using (var h = new SafeStringMarshal (str)) {
   /* use h.Value IntPtr */
} // g_free'd by h.Dispose ()

7 years ago[mcs] Recursive interface declaration check is needed for interfaces only. Fixes...
Marek Safar [Fri, 29 Jul 2016 13:20:08 +0000 (15:20 +0200)]
[mcs] Recursive interface declaration check is needed for interfaces only. Fixes #42198

7 years ago[mcs] Do exactly matching expression check for anonymous methods with successfully...
Marek Safar [Fri, 29 Jul 2016 12:49:44 +0000 (14:49 +0200)]
[mcs] Do exactly matching expression check for anonymous methods with successfully inferred return type only. Fixes #42611

7 years agoRevert "[runtime] Add documentation to mono-os-{mutex,cond,sem} + Move to .c file"
Ludovic Henry [Fri, 29 Jul 2016 10:35:44 +0000 (12:35 +0200)]
Revert "[runtime] Add documentation to mono-os-{mutex,cond,sem} + Move to .c file"

This reverts commit 9ba062e5a183f3ace3a21e2e3d240adc3db0e5a4.