mono.git
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 agoBump binary-reference-assemblies
Marek Safar [Fri, 5 Aug 2016 12:28:38 +0000 (14:28 +0200)]
Bump binary-reference-assemblies

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 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.

7 years ago[gc] mono_os_cond_timedwait returns -1 on timeout, not ETIMEDOUT
Ludovic Henry [Thu, 28 Jul 2016 22:06:54 +0000 (00:06 +0200)]
[gc] mono_os_cond_timedwait returns -1 on timeout, not ETIMEDOUT

7 years ago[runtime] Add documentation to mono-os-{mutex,cond,sem} + Move to .c file
Ludovic Henry [Thu, 28 Jul 2016 22:05:49 +0000 (00:05 +0200)]
[runtime] Add documentation to mono-os-{mutex,cond,sem} + Move to .c file

7 years ago[reflection] Plug more leaks.
Aleksey Kliger [Thu, 28 Jul 2016 20:26:21 +0000 (16:26 -0400)]
[reflection] Plug more leaks.

7 years agoFix a cut'n'paste error
Marek Habersack [Thu, 28 Jul 2016 17:24:25 +0000 (19:24 +0200)]
Fix a cut'n'paste error

7 years agoMerge pull request #3338 from lambdageek/dev/plug-ptrarray-leak
Rodrigo Kumpera [Thu, 28 Jul 2016 15:21:01 +0000 (11:21 -0400)]
Merge pull request #3338 from lambdageek/dev/plug-ptrarray-leak

[reflection] Don't leak GPtrArray internal array

7 years agoMerge pull request #3334 from alexrp/arm-cpu-detect-fix
Alex Rønne Petersen [Thu, 28 Jul 2016 15:08:26 +0000 (17:08 +0200)]
Merge pull request #3334 from alexrp/arm-cpu-detect-fix

[arm] Also check the 'model name' line for the architecture version.

7 years ago[corlib] change Mono.SafeGPtrArrayHandle to a struct
Aleksey Kliger [Thu, 28 Jul 2016 14:59:14 +0000 (10:59 -0400)]
[corlib] change Mono.SafeGPtrArrayHandle to a struct

Don't GC allocate short-lived internal garbage.

7 years ago[reflection] Don't leak GPtrArray internal array
Aleksey Kliger [Thu, 28 Jul 2016 14:53:06 +0000 (10:53 -0400)]
[reflection] Don't leak GPtrArray internal array

`g_ptr_array_free (..., FALSE)` was the wrong thing here.  We always
want TRUE in our use cases.

7 years ago[mini] Fix asm/sigcontext.h include in exceptions-arm.h
Alexander Köplinger [Thu, 28 Jul 2016 13:48:19 +0000 (15:48 +0200)]
[mini] Fix asm/sigcontext.h include in exceptions-arm.h

We include the header under the PLATFORM_ANDROID ifdef in mono-sigcontext.h as well [1].
It was probably added because older Bionic didn't include this from signal.h [2].

Fixes the build on Alpine/musl-libc.

[1] https://github.com/mono/mono/blob/19a99abf1680c85f8ff58c2b44ea8c15bb557ca5/mono/utils/mono-sigcontext.h#L5
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=859580

7 years ago[libgc] fix musl incorrect sigcontext include
Angelo Compagnucci [Mon, 27 Jun 2016 19:32:11 +0000 (21:32 +0200)]
[libgc] fix musl incorrect sigcontext include

On musl __GLIBC__ is not defined, so the conditional logic will
not produce correct result. Add a specific case to handle when
__GLIBC__ is not defined.

7 years ago[io-layer] Add include for sys/types.h to processes.h to fix Alpine build
Alexander Köplinger [Thu, 28 Jul 2016 13:04:14 +0000 (15:04 +0200)]
[io-layer] Add include for sys/types.h to processes.h to fix Alpine build

It showed the following error before:

```
In file included from wapi.h:23:0,
                 from wapi.c:2:
../../mono/io-layer/processes.h:218:31: error: unknown type name 'pid_t'
 gchar* wapi_process_get_path (pid_t pid);
                               ^
Makefile:603: recipe for target 'wapi.lo' failed
make[3]: *** [wapi.lo] Error 1
```

7 years ago[mcs] Add codegen for compound assigment of complex expressions with concatenated...
Marek Safar [Thu, 28 Jul 2016 12:09:45 +0000 (14:09 +0200)]
[mcs] Add codegen for compound assigment of complex expressions with concatenated string using await inside params arguments. Fixes #42224

7 years ago[arm] Make HAVE_ARMV{5,6,7} macros override hwcap detection.
Alex Rønne Petersen [Thu, 28 Jul 2016 02:32:19 +0000 (04:32 +0200)]
[arm] Make HAVE_ARMV{5,6,7} macros override hwcap detection.

This is necessary on weird devices where the hwcap code might fail to detect
the ARM version it's running on (usually caused by differences in /proc/cpuinfo
output).

7 years agoMerge pull request #2961 from schani/fix-sgen-refactoring
Vlad Brezae [Wed, 27 Jul 2016 20:04:34 +0000 (23:04 +0300)]
Merge pull request #2961 from schani/fix-sgen-refactoring

SGen fixes and refactorings

7 years agoMerge pull request #3328 from BrzVlad/finalizer-thread-exited2
Vlad Brezae [Wed, 27 Jul 2016 19:59:27 +0000 (22:59 +0300)]
Merge pull request #3328 from BrzVlad/finalizer-thread-exited2

[sgen] Avoid popping the entire finalizer queues if finalizers are su…

7 years ago[System.Core] Add MonoTODOAttribute to workaround linker bug with IVT from mscorlib
Marek Safar [Wed, 27 Jul 2016 19:50:39 +0000 (21:50 +0200)]
[System.Core] Add MonoTODOAttribute to workaround linker bug with IVT from mscorlib

7 years ago[arm] Also check the 'model name' line for the architecture version.
Alex Rønne Petersen [Wed, 27 Jul 2016 16:17:40 +0000 (18:17 +0200)]
[arm] Also check the 'model name' line for the architecture version.

Some Android devices for some reason have a 'model name' line instead of a
'Processor' line. On such devices, we would fail to detect the architecture
version at all, and end up thinking that it's ARMv4 (even if the runtime
was compiled for ARMv7).

7 years ago[mcs] Detect constant switch statement fall-through. Fixes #42585
Marek Safar [Wed, 27 Jul 2016 09:40:49 +0000 (11:40 +0200)]
[mcs] Detect constant switch statement fall-through. Fixes #42585

7 years ago[Facades] Remove duplicate System.IO.Compression
Marek Safar [Wed, 27 Jul 2016 07:40:11 +0000 (09:40 +0200)]
[Facades] Remove duplicate System.IO.Compression

7 years ago[sdb] Explicitly encode in the JIT debug info whenever there is precise information...
Zoltan Varga [Wed, 27 Jul 2016 00:32:30 +0000 (20:32 -0400)]
[sdb] Explicitly encode in the JIT debug info whenever there is precise information about variable locations instead of checking whenever the method has seq points. Fixes #42750.

7 years ago[sgen] Avoid popping the entire finalizer queues if finalizers are suspended
Vlad Brezae [Mon, 25 Jul 2016 17:40:59 +0000 (20:40 +0300)]
[sgen] Avoid popping the entire finalizer queues if finalizers are suspended

When we shutdown we set suspend_finalizers flag in metadata so we no longer run any finalizers. After recent changes, we avoid traversing gc hashes for finalizer enqueuing when this flag is set. The counterpart, popping the queues empty (even without running the finalizers) can still take some time, especially since we lock for each entry. Exit early from this loop if we no longer need to run finalizers.

Achieve this by setting a new flag inside sgen, instead of passing the address of suspend_finalizers all the time to the sgen api.

7 years agoMerge pull request #3199 from lambdageek/dev/proxy-setter
Aleksey Kliger (λgeek) [Tue, 26 Jul 2016 16:47:45 +0000 (12:47 -0400)]
Merge pull request #3199 from lambdageek/dev/proxy-setter

[remoting] Convert mono_store_remote_field_new_checked to managed code

7 years ago[mcs] Report interpolated strings feature. Fixes #42410
Marek Safar [Tue, 26 Jul 2016 15:44:28 +0000 (17:44 +0200)]
[mcs] Report interpolated strings feature. Fixes #42410

7 years agoMerge pull request #3330 from madewokherd/compactframework
Marek Safar [Tue, 26 Jul 2016 14:26:02 +0000 (16:26 +0200)]
Merge pull request #3330 from madewokherd/compactframework

Remap the Compact Framework PublicKeyToken for assemblies it ships.

7 years ago[System.Text.Encoding.CodePages] Small improvements
Marek Safar [Tue, 26 Jul 2016 14:13:30 +0000 (16:13 +0200)]
[System.Text.Encoding.CodePages] Small improvements