mono.git
6 years agoBump API snapshot submodule
monojenkins [Thu, 31 Aug 2017 17:10:57 +0000 (17:10 +0000)]
Bump API snapshot submodule

6 years agoBump cecil and linker
Marek Safar [Thu, 31 Aug 2017 12:34:11 +0000 (14:34 +0200)]
Bump cecil and linker

6 years ago[sdb] Fix support for async debugging in optimized mode, roslyn generates valuetype...
Zoltan Varga [Thu, 31 Aug 2017 11:17:02 +0000 (07:17 -0400)]
[sdb] Fix support for async debugging in optimized mode, roslyn generates valuetype IAsyncStateMethod implementations. Fixes #58728. (#5476)

6 years ago[bcl] Fix a few hardcoded socket ports in tests (#5471)
Alexander Köplinger [Thu, 31 Aug 2017 08:53:35 +0000 (10:53 +0200)]
[bcl] Fix a few hardcoded socket ports in tests (#5471)

* [System] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

* [System.Runtime.Remoting] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

Additionally remove a copy of RemotingServicesTest.cs from corlib
which also exists in System.Runtime.Remoting in updated form.

* [System.ServiceModel] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

* [System.Net.Http] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

The additional "keep-alive" header in Send_Complete_NoContent() and
Send_Transfer_Encoding_Chunked() is because we were using the same
port for all tests before so other tests would clear the header.
This doesn't happen now that we use distinct test ports.

* [System.ServiceModel.Web] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

6 years agoRevert "Merge pull request #5330 from alexanderkyte/dedup_mkbundle"
Alexander Köplinger [Wed, 30 Aug 2017 22:41:53 +0000 (00:41 +0200)]
Revert "Merge pull request #5330 from alexanderkyte/dedup_mkbundle"

This reverts commit 9a287c04126d095e7371afee32632febd0dafd93, reversing
changes made to 4a79280b3bef8d5f15da9ddd2a2af3a03e194b03.

It breaks tons of tests.

6 years agoMerge pull request #5330 from alexanderkyte/dedup_mkbundle
Alexander Kyte [Wed, 30 Aug 2017 19:59:18 +0000 (15:59 -0400)]
Merge pull request #5330 from alexanderkyte/dedup_mkbundle

[runtime] Add Dedup Support to MkBundle

6 years ago[Mono.Security]: Add 'MonoTlsProvider.SupportsCleanShutdown' and 'MonoTlsSettings...
Martin Baulig [Wed, 30 Aug 2017 17:43:36 +0000 (13:43 -0400)]
[Mono.Security]: Add 'MonoTlsProvider.SupportsCleanShutdown' and 'MonoTlsSettings.SendCloseNotify'. (#5465)

Only send close_notify when using BTLS and explicitly requested via 'MonoTlsSettings.SendCloseNotify'.

6 years ago[runtime] Document mkbundle AOT options in man pages
Alexander Kyte [Sun, 13 Aug 2017 10:43:36 +0000 (06:43 -0400)]
[runtime] Document mkbundle AOT options in man pages

6 years ago[runtime] Fix tracking of dedup module in mkbundle
Alexander Kyte [Mon, 7 Aug 2017 21:25:52 +0000 (17:25 -0400)]
[runtime] Fix tracking of dedup module in mkbundle

6 years ago[runtime] Add mkbundle support for dedup
Alexander Kyte [Mon, 10 Jul 2017 22:12:32 +0000 (18:12 -0400)]
[runtime] Add mkbundle support for dedup

6 years ago[runtime] Clean up temp mkbundle aot directory
Alexander Kyte [Wed, 7 Jun 2017 18:42:34 +0000 (14:42 -0400)]
[runtime] Clean up temp mkbundle aot directory

6 years ago[runtime] Fix mkbundle internationalization test results, build all
Alexander Kyte [Wed, 7 Jun 2017 05:19:12 +0000 (01:19 -0400)]
[runtime] Fix mkbundle internationalization test results, build all

6 years ago[runtime] Provide config to mkbundle
Alexander Kyte [Tue, 6 Jun 2017 22:41:13 +0000 (18:41 -0400)]
[runtime] Provide config to mkbundle

6 years ago[runtime] Don't re-aot when running BCL tests
Alexander Kyte [Mon, 5 Jun 2017 21:52:59 +0000 (17:52 -0400)]
[runtime] Don't re-aot when running BCL tests

6 years ago[runtime] Skip not supported tests with mkbundle
Alexander Kyte [Mon, 5 Jun 2017 19:18:41 +0000 (15:18 -0400)]
[runtime] Skip not supported tests with mkbundle

6 years ago[runtime] Build stripper and use with mkbundle
Alexander Kyte [Wed, 31 May 2017 18:13:09 +0000 (14:13 -0400)]
[runtime] Build stripper and use with mkbundle

Preliminary linker support ran into dependency-finding bug
with the monolinker.exe binary. Fix postponed until later.

6 years ago[runtime] Add target to mkbundle all tests before CI
Alexander Kyte [Wed, 7 Jun 2017 18:44:45 +0000 (14:44 -0400)]
[runtime] Add target to mkbundle all tests before CI

6 years ago[runtime] Move testing dll into profile
Alexander Kyte [Wed, 7 Jun 2017 18:44:36 +0000 (14:44 -0400)]
[runtime] Move testing dll into profile

6 years ago[runtime] Fix in-tree building for mkbundle
Alexander Kyte [Wed, 7 Jun 2017 18:44:16 +0000 (14:44 -0400)]
[runtime] Fix in-tree building for mkbundle

6 years ago[runtime] Skip building System.Security, System.IdentityModel tests on testing_aot_full
Alexander Kyte [Wed, 7 Jun 2017 18:44:09 +0000 (14:44 -0400)]
[runtime] Skip building System.Security, System.IdentityModel tests on testing_aot_full

6 years ago[runtime] Use mkbundle in BCL tests
Alexander Kyte [Wed, 7 Jun 2017 18:43:58 +0000 (14:43 -0400)]
[runtime] Use mkbundle in BCL tests

6 years ago[runtime] Fix path resolving for mkbundle
Alexander Kyte [Wed, 3 May 2017 15:48:37 +0000 (11:48 -0400)]
[runtime] Fix path resolving for mkbundle

6 years ago[runtime] Add new dedup interface to mkbundle
Alexander Kyte [Tue, 2 May 2017 17:38:59 +0000 (13:38 -0400)]
[runtime] Add new dedup interface to mkbundle

6 years ago[runtime] Fix mkbundle compilation on OSX
Alexander Kyte [Mon, 1 May 2017 21:32:14 +0000 (17:32 -0400)]
[runtime] Fix mkbundle compilation on OSX

6 years ago[runtime] Enable compiling aot with mkbundle
Alexander Kyte [Wed, 7 Jun 2017 18:43:48 +0000 (14:43 -0400)]
[runtime] Enable compiling aot with mkbundle

6 years ago[runtime] Add aot arguments to mkbundle
Alexander Kyte [Wed, 7 Jun 2017 18:43:39 +0000 (14:43 -0400)]
[runtime] Add aot arguments to mkbundle

6 years agoUpdate Clang's ThreadSanitizer blacklist (#5467)
Armin Hasitzka [Wed, 30 Aug 2017 10:16:20 +0000 (12:16 +0200)]
Update Clang's ThreadSanitizer blacklist (#5467)

6 years agoBump api-snapshot
Alexander Köplinger [Wed, 30 Aug 2017 10:00:12 +0000 (12:00 +0200)]
Bump api-snapshot

6 years agoCall `g_utf8_to_utf16` with a proper argument (#5470)
Joshua Peterson [Wed, 30 Aug 2017 09:59:57 +0000 (05:59 -0400)]
Call `g_utf8_to_utf16` with a proper argument (#5470)

* The sizes of `glong` and `gsize` differ on 64-bit Windows.
* In order to avoid uninitialized data in the high four bytes of the `bytes` argument to `mono_unicode_from_external`, call `g_utf8_to_utf16` with a `glong`, then copy the result.

6 years agoMerge pull request #5469 from marek-safar/ilasm
Marek Safar [Tue, 29 Aug 2017 21:04:53 +0000 (23:04 +0200)]
Merge pull request #5469 from marek-safar/ilasm

[ilasm] Adds AggressiveInlining support

6 years agoRevert "[runtime] Wait for the thread to really exit in Thread.Join (). (#5454)"
Alexander Köplinger [Tue, 29 Aug 2017 20:05:12 +0000 (22:05 +0200)]
Revert "[runtime] Wait for the thread to really exit in Thread.Join (). (#5454)"

This reverts commit ec30afd9dcee60bea5ce4c221a9680a23449ab87.

It causes test failures on s390x.

6 years agoRevert "[llvm] Add support for building with more recent versions of the mono llvm...
Alexander Köplinger [Tue, 29 Aug 2017 19:45:59 +0000 (21:45 +0200)]
Revert "[llvm] Add support for building with more recent versions of the mono llvm branch, in particular https://github.com/mono/llvm/tree/2017-07-06-5a1ffa96376e8a3ee895b782790591e5e7814ccf, which is based on llvm 5.0. (#5408)"

This reverts commit f01f85481834e3d9cae2d6c757f9b694851c22aa.

It broke a bunch of tests with llvm.

6 years ago[PEAPI] Don't add mscorlib reference when no type needs it
Marek Safar [Tue, 29 Aug 2017 17:47:37 +0000 (19:47 +0200)]
[PEAPI] Don't add mscorlib reference when no type needs it

6 years ago[ilasm] Adds noautoinherit option
Marek Safar [Tue, 29 Aug 2017 14:23:00 +0000 (16:23 +0200)]
[ilasm] Adds noautoinherit option

6 years ago[ilasm] Adds AggressiveInlining support
Marek Safar [Tue, 29 Aug 2017 13:51:55 +0000 (15:51 +0200)]
[ilasm] Adds AggressiveInlining support

6 years agoRemove leftover targets from Makefile.am (#5466)
Alexander Köplinger [Tue, 29 Aug 2017 07:18:43 +0000 (09:18 +0200)]
Remove leftover targets from Makefile.am (#5466)

win32getdeps and win32setup don't apply anymore.

6 years ago[llvm] Add support for building with more recent versions of the mono llvm branch...
Zoltan Varga [Tue, 29 Aug 2017 01:42:39 +0000 (21:42 -0400)]
[llvm] Add support for building with more recent versions of the mono llvm branch, in particular https://github.com/mono/llvm/tree/2017-07-06-5a1ffa96376e8a3ee895b782790591e5e7814ccf, which is based on llvm 5.0. (#5408)

6 years ago[runtime] Wait for the thread to really exit in Thread.Join (). (#5454)
Zoltan Varga [Tue, 29 Aug 2017 01:38:29 +0000 (21:38 -0400)]
[runtime] Wait for the thread to really exit in Thread.Join (). (#5454)

6 years ago[sgen] Move the mono_gchandle_ functions to sgen-mono.c for consistency, add sgen_gch...
Zoltan Varga [Tue, 29 Aug 2017 01:37:08 +0000 (21:37 -0400)]
[sgen] Move the mono_gchandle_ functions to sgen-mono.c for consistency, add sgen_gchandle () functions instead. (#5460)

6 years ago[sdb] Make the IL in dtest-excfilter.il valid. (#5463)
Zoltan Varga [Tue, 29 Aug 2017 01:36:42 +0000 (21:36 -0400)]
[sdb] Make the IL in dtest-excfilter.il valid. (#5463)

6 years ago[amd64] Make code patching smp safe for the case where we emit a mov + call_reg....
Zoltan Varga [Mon, 28 Aug 2017 08:37:53 +0000 (04:37 -0400)]
[amd64] Make code patching smp safe for the case where we emit a mov + call_reg. Hopefully fixes #57959. (#5452)

6 years ago[gc counters] avoid using Interlocked*64 functions as they are broken on some arches...
Bernhard Urban [Mon, 28 Aug 2017 05:57:00 +0000 (07:57 +0200)]
[gc counters] avoid using Interlocked*64 functions as they are broken on some arches (#5451)

They are implemented via a global lock, which can lead to deadlooks in
some situations, e.g.

```
-0  0xb6c92e14 in sigsuspend () from /lib/arm-linux-gnueabi/libc.so.6
-1  0x0043f3b4 in suspend_signal_handler (_dummy=35, info=0xb4afe6d0, context=0xb4afe750) at mono-threads-posix-signals.c:177
-2  <signal handler called>
-3  0xb6de6bc4 in __pthread_mutex_unlock_usercnt () from /lib/arm-linux-gnueabi/libpthread.so.0
-4  0x00440f00 in InterlockedCompareExchange64 (dest=0x530700 <worker+64>, exch=0, comp=0) at atomic.c:578
-5  0x002f228c in InterlockedRead64 (src=0x530700 <worker+64>) at ../../mono/utils/atomic.h:398
-6  0x002f29a0 in COUNTER_READ () at threadpool-worker-default.c:194
-7  0x002f3320 in worker_park () at threadpool-worker-default.c:426
-8  0x002f3774 in worker_thread (unused=0x0) at threadpool-worker-default.c:488
-9  0x002e66b0 in start_wrapper_internal (start_info=0x0, stack_ptr=0xb4b00000) at threads.c:982
-10 0x002e6894 in start_wrapper (data=0x5a8f38) at threads.c:1044
-11 0xb6de31a8 in start_thread () from /lib/arm-linux-gnueabi/libpthread.so.0
-12 0xb6d3a1bc in ?? () from /lib/arm-linux-gnueabi/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0xb40ff440 (LWP 10198)):
-0  0xb6deb56c in __lll_lock_wait () from /lib/arm-linux-gnueabi/libpthread.so.0
-1  0xb6de584c in pthread_mutex_lock () from /lib/arm-linux-gnueabi/libpthread.so.0
-2  0x00440e6c in InterlockedCompareExchange64 (dest=0x559868 <gc_stats+8>, exch=2855648, comp=2844091) at atomic.c:570
-3  0x0039bdcc in InterlockedAdd64 (dest=0x559868 <gc_stats+8>, add=11557) at ../../mono/utils/atomic.h:392
-4  0x003a1b50 in collect_nursery (reason=0x5083f4 "Nursery full", is_overflow=0, unpin_queue=0x0) at sgen-gc.c:1865
-5  0x003a3794 in sgen_perform_collection (requested_size=4096, generation_to_collect=0, reason=0x5083f4 "Nursery full", wait_to_finish=0, stw=1) at sgen-gc.c:2539
-6  0x003a35f0 in sgen_ensure_free_space (size=4096, generation=0) at sgen-gc.c:2505
-7  0x00389db0 in sgen_alloc_obj_nolock (vtable=0xb4d174d0, size=64) at sgen-alloc.c:256
-8  0x0036e330 in mono_gc_alloc_vector (vtable=0xb4d174d0, size=64, max_length=12) at sgen-mono.c:1743
-9  0xb6c16a38 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
```

fixes https://bugzilla.xamarin.com/show_bug.cgi?id=59039

6 years agoMerge pull request #5459 from HinTak/patch-5
Alex Rønne Petersen [Sun, 27 Aug 2017 22:17:21 +0000 (00:17 +0200)]
Merge pull request #5459 from HinTak/patch-5

More informative g_error message

6 years agoMerge pull request #5458 from HinTak/patch-4
Alex Rønne Petersen [Sun, 27 Aug 2017 22:16:54 +0000 (00:16 +0200)]
Merge pull request #5458 from HinTak/patch-4

remove redundant duplicate word 'not'

6 years agoMore informative g_error message
HinTak [Sun, 27 Aug 2017 21:55:11 +0000 (22:55 +0100)]
More informative g_error message

Encountered this message while running the new mkbundle simple-cross functionality introduced recently. "Function not supported" is seen on both Mac OS X and Ubuntu. Will possibly file a separate bug since HAVE_MKDTEMP should be true... but it should be "Function mkdtemp not supported" in any case.

6 years agoremove redundant duplicate word 'not'
HinTak [Sun, 27 Aug 2017 21:44:09 +0000 (22:44 +0100)]
remove redundant duplicate word 'not'

Found a consecutive 'not' pair while searching the code for somethng else.

6 years ago[runtime] Use the AC_FUNC_STRERROR_R() autoconf macro to distinguish between the...
Zoltan Varga [Sun, 27 Aug 2017 07:35:50 +0000 (03:35 -0400)]
[runtime] Use the AC_FUNC_STRERROR_R() autoconf macro to distinguish between the two possible signatures for strerror_r (). (#5453)

6 years agoMerge pull request #5455 from HinTak/patch-1
Alex Rønne Petersen [Sun, 27 Aug 2017 04:49:46 +0000 (06:49 +0200)]
Merge pull request #5455 from HinTak/patch-1

Fixing confusing typos

6 years agoFixing confusing typos
HinTak [Sun, 27 Aug 2017 04:21:59 +0000 (12:21 +0800)]
Fixing confusing typos

Fixing confusing typos - should be self-explanatory.

6 years ago[jit] Assert that the trampoline code is called in gc unsafe mode, throw exceptions...
Zoltan Varga [Sat, 26 Aug 2017 08:53:24 +0000 (04:53 -0400)]
[jit] Assert that the trampoline code is called in gc unsafe mode, throw exceptions by returning the exception to the assembly trampoline code and throwing it from there. (#5409)

6 years ago[amd64] silence compiler warning (#5435)
Uri Simchoni [Sat, 26 Aug 2017 03:24:47 +0000 (06:24 +0300)]
[amd64] silence compiler warning (#5435)

Silence a GCC warning about param_regs and return_regs not being
used.

6 years ago[System] Disable SocketTest.SendAsyncFile for now (#5447)
Alexander Köplinger [Fri, 25 Aug 2017 19:58:52 +0000 (21:58 +0200)]
[System] Disable SocketTest.SendAsyncFile for now (#5447)

It's one of the flaky tests that we have had for a very long time.

There's work in progress fixing it as part of
https://github.com/mono/mono/pull/5345 and https://bugzilla.xamarin.com/show_bug.cgi?id=43172
but I think we should disable it in the meantime for clean CI.

6 years ago[configure.ac] Don't include the .build number in runtime-corlib version (#5449)
Alexander Köplinger [Fri, 25 Aug 2017 19:57:20 +0000 (21:57 +0200)]
[configure.ac] Don't include the .build number in runtime-corlib version (#5449)

It's causing unnecessary complexity because we need to create a new
monolite when bumping the .build number in a major.minor.build
version like from 5.2.0 -> 5.2.1

corlib version bumps are very rare in those cases and even then
you can just increment the MONO_CORLIB_COUNTER variable.

6 years ago[profiler] Correct the description of the 'legacy' option.
Alex Rønne Petersen [Fri, 25 Aug 2017 19:06:36 +0000 (21:06 +0200)]
[profiler] Correct the description of the 'legacy' option.

6 years ago[System]: Cleanup debugging and use the same technique from the new web stack. (...
Martin Baulig [Fri, 25 Aug 2017 16:58:50 +0000 (12:58 -0400)]
[System]: Cleanup debugging and use the same technique from the new web stack. (#5441)

* Cleanup debugging and use the same technique from the new web stack.

* The MARTIN_DEBUG conditional has been renamed into MONO_TLS_DEBUG.

* Moved the actual implementation into MNS.MonoTlsProviderFactory.

* We now use an environment variable called 'MONO_TLS_DEBUG' to
  enable debugging (so to get debugging, you need to both compile with
  -define:MONO_TLS_DEBUG and set that environment variable).

The new web stack has a conditional and environment variable called
'MARTIN_WEB_DEBUG'.

* Use [Conditional] instead of #if.

6 years ago[msvc] Update csproj files (#5450)
monojenkins [Fri, 25 Aug 2017 16:14:40 +0000 (18:14 +0200)]
[msvc] Update csproj files (#5450)

6 years ago[man] Cleanup mentions of monocov in mono.1 (#5446)
Alexander Köplinger [Fri, 25 Aug 2017 12:36:44 +0000 (14:36 +0200)]
[man] Cleanup mentions of monocov in mono.1 (#5446)

Coverage support was added to the log profiler in a5ab6c642e38cbb60cf0c4f63007652ebf567060
and the monocov profiler was removed with 16570265149730ec6a4760cc0fa34decc1a9d981.

6 years agoRetrieve thread lazily and avoid special case for defer. We were trying to get thread...
Jonathan Chambers [Fri, 25 Aug 2017 07:46:34 +0000 (03:46 -0400)]
Retrieve thread lazily and avoid special case for defer. We were trying to get thread when in defer mode even for EVENT_KIND_VM_DEATH and hitting assert since current thread was not available. (#5440)

6 years agoEnsure exception out argument is initialized to NULL. (#5424)
Jonathan Chambers [Fri, 25 Aug 2017 07:38:11 +0000 (03:38 -0400)]
Ensure exception out argument is initialized to NULL. (#5424)

6 years agoMerge pull request #5420 from nealef/z13v5
Rodrigo Kumpera [Thu, 24 Aug 2017 20:58:08 +0000 (16:58 -0400)]
Merge pull request #5420 from nealef/z13v5

Add support for z13 processor

6 years ago[System]: Cleanup internal TLS APIs in preparation of adding renegotiation support...
Martin Baulig [Thu, 24 Aug 2017 20:13:04 +0000 (16:13 -0400)]
[System]: Cleanup internal TLS APIs in preparation of adding renegotiation support. (#5426)

* [btls]: Bind new native APIs to support renegotiation.

* mono_btls_ssl_set_renegotiate_mode(), mono_btls_ssl_renegotiate_pending():
  New native methods.

* MonoBtlsSsl: Added SetRenegotiateMode() and RenegotiatePending().

* MonoBtlsSslRenegotiateMode: New internal enum.

* [System]: Cleanup internal Mono.Net.Security.MobileTlsContext APIs.

Use tuple `(int ret, bool wantMore)' return value instead of out variables.

* [System]: Check for pending exceptions in MobileAuthenticatedStream.

This should fix some issues where we're hanging instead of throwing
an exception if something went wrong.

6 years agoMerge pull request #5438 from cherusker/cherusker-2017-08-24-complete-prototype
Alex Rønne Petersen [Thu, 24 Aug 2017 19:53:19 +0000 (21:53 +0200)]
Merge pull request #5438 from cherusker/cherusker-2017-08-24-complete-prototype

[libtest] Complete the function prototype

6 years agoMerge pull request #5439 from alexrp/master
Alex Rønne Petersen [Thu, 24 Aug 2017 17:21:47 +0000 (19:21 +0200)]
Merge pull request #5439 from alexrp/master

[profiler] Fix some stack imbalance issues due to missing method leave events.

6 years ago[profiler] Add a missing method_leave event for the CEE_MONO_RETOBJ opcode.
Alex Rønne Petersen [Thu, 24 Aug 2017 15:08:49 +0000 (17:08 +0200)]
[profiler] Add a missing method_leave event for the CEE_MONO_RETOBJ opcode.

6 years ago[profiler] Add a missing method_tail_call event when the tailc optimization is enabled.
Alex Rønne Petersen [Thu, 24 Aug 2017 15:08:20 +0000 (17:08 +0200)]
[profiler] Add a missing method_tail_call event when the tailc optimization is enabled.

6 years agoComplete the function prototype
cherusker [Thu, 24 Aug 2017 14:16:02 +0000 (16:16 +0200)]
Complete the function prototype

6 years ago[mcs] Update logic when checking for tuple element names when overriding inherited...
Marek Safar [Thu, 24 Aug 2017 08:37:05 +0000 (10:37 +0200)]
[mcs] Update logic when checking for tuple element names when overriding inherited member

6 years agoRevert "[runtime] Fix a warning."
Zoltan Varga [Thu, 24 Aug 2017 02:46:10 +0000 (22:46 -0400)]
Revert "[runtime] Fix a warning."

This reverts commit f99617537ba31a046ede2753733d20c20a30e714.

Revert this as the original code was right, there is a problem with the defines.

6 years agoMerge pull request #5415 from kumpera/wasm-support
Rodrigo Kumpera [Wed, 23 Aug 2017 23:03:16 +0000 (19:03 -0400)]
Merge pull request #5415 from kumpera/wasm-support

WebAssembly port

6 years ago[wasm] Don't define MONO_CROSS_COMPILE in the wasm configure.ac
Rodrigo Kumpera [Tue, 22 Aug 2017 20:15:04 +0000 (13:15 -0700)]
[wasm] Don't define MONO_CROSS_COMPILE in the wasm configure.ac

6 years ago[utils] Fix mono_valloc and mono_valloc_aligned malloc-based implementation.
Rodrigo Kumpera [Tue, 22 Aug 2017 20:02:10 +0000 (13:02 -0700)]
[utils] Fix mono_valloc and mono_valloc_aligned malloc-based implementation.

6 years ago[wasm] Add wasm stubs for object-offsets and sgen-archdep.
Rodrigo Kumpera [Tue, 22 Aug 2017 18:42:33 +0000 (11:42 -0700)]
[wasm] Add wasm stubs for object-offsets and sgen-archdep.

6 years ago[wasm] Add wasm strings to mono-config.c
Rodrigo Kumpera [Tue, 22 Aug 2017 18:42:01 +0000 (11:42 -0700)]
[wasm] Add wasm strings to mono-config.c

6 years ago[wasm] Add comments explaining the magic strings in mono-dl-wasm.c
Rodrigo Kumpera [Tue, 22 Aug 2017 18:37:28 +0000 (11:37 -0700)]
[wasm] Add comments explaining the magic strings in mono-dl-wasm.c

6 years ago[readme] Document --enable-wasm
Rodrigo Kumpera [Tue, 22 Aug 2017 18:36:45 +0000 (11:36 -0700)]
[readme] Document --enable-wasm

6 years ago[wasm] Add threading, dl and hwcap support for wasm.
Rodrigo Kumpera [Mon, 21 Aug 2017 23:26:04 +0000 (16:26 -0700)]
[wasm] Add threading, dl and hwcap support for wasm.

6 years agoRemove unnecessary ifdefed code
Neale Ferguson [Tue, 22 Aug 2017 15:29:27 +0000 (11:29 -0400)]
Remove unnecessary ifdefed code

6 years agoSkip load if same register
Neale Ferguson [Fri, 18 Aug 2017 15:22:04 +0000 (11:22 -0400)]
Skip load if same register

6 years agoAdd support for z13 processor
Neale Ferguson [Thu, 17 Aug 2017 20:42:54 +0000 (16:42 -0400)]
Add support for z13 processor

The z13 supports some useful instructions that can be exploited
by the JIT. Most notably the compare-and-branch instructions can
reduce a two instruction sequence to one. The load-and-add command
eliminates the more complex compare-and-swap sequence.

The z13 also supports three operand instructions dst,src1,src2
which eliminate checks and loads for instructions like add and subtract.

The unaligned.cs test has been changed to cater for big-endian platforms.
For s390x only, the --trace option will result in a file per thread
being created rather than the traces being written to stdout and
sometimes intermixing incomplete trace entries.

6 years ago[TSan] Unlocking MonoStats, GCStats and JITGCStats (#5381)
Armin Hasitzka [Wed, 23 Aug 2017 17:50:34 +0000 (19:50 +0200)]
[TSan] Unlocking MonoStats, GCStats and JITGCStats (#5381)

[TSan] Unlocking MonoStats, GCStats and JITGCStats

As the `Unlocked* ()` functions have been approved in https://github.com/mono/mono/pull/5310, I used them to blacklist some of the most obvious counting variables whose data races should be ignored: `MonoStats`, `GCStats` and `JITGCStats` (more to follow if approved).

Please find details about all changes within the commit messages.

6 years ago[threadpool] Reduce logging verbosity level. Fixes #58829
Marek Safar [Tue, 22 Aug 2017 16:30:08 +0000 (18:30 +0200)]
[threadpool] Reduce logging verbosity level. Fixes #58829

6 years agoAdded compile target option as library
Elastino [Wed, 23 Aug 2017 03:42:16 +0000 (12:42 +0900)]
Added compile target option as library

Added -t:library since mcd does not interpret output filename for dll suffix.
Without -t:library option, it fails to compile.
{code}
mono$ mcs -debug+ -r:System.Core Options.cs -o:Mono.Options.dll
error CS5001: Program `Options.exe' does not contain a static `Main' method suitable for an entry point
Compilation failed: 1 error(s), 0 warnings
{code}

6 years agoMerge pull request #5423 from vargaz/workaround-58901
Alexander Köplinger [Wed, 23 Aug 2017 00:04:18 +0000 (02:04 +0200)]
Merge pull request #5423 from vargaz/workaround-58901

[runtime] Disable a test which asserts because of an abi break in rec…

6 years agoRevert "Disable pinvoke2.exe test on OSX i386 for now (#5411)"
Zoltan Varga [Tue, 22 Aug 2017 20:53:01 +0000 (16:53 -0400)]
Revert "Disable pinvoke2.exe test on OSX i386 for now (#5411)"

This reverts commit 4d89d5f17bb72fb2e192736653923d8d90741a01.

Revert this as the problematic test is disabled in libtest.c.

6 years ago[runtime] Disable a test which asserts because of an abi break in recent xcode/clang...
Zoltan Varga [Tue, 22 Aug 2017 18:46:48 +0000 (14:46 -0400)]
[runtime] Disable a test which asserts because of an abi break in recent xcode/clang versions. Works around #58901.

6 years ago[Mono.Security] Bugfix of bug 23153. Certificate loop variable not used to find certi...
Rogier Hofboer [Tue, 22 Aug 2017 11:38:25 +0000 (13:38 +0200)]
[Mono.Security] Bugfix of bug 23153. Certificate loop variable not used to find certificate

6 years ago[msi] Fix typos in f9bdab792800cd8f95bb71f02f403f2d414cce9b
Jo Shields [Tue, 22 Aug 2017 14:18:20 +0000 (10:18 -0400)]
[msi] Fix typos in f9bdab792800cd8f95bb71f02f403f2d414cce9b

6 years ago[Syndication]Fix Runtime crash when parsing pubTime in RFC822 format (#5416)
Infko [Tue, 22 Aug 2017 13:11:43 +0000 (21:11 +0800)]
[Syndication]Fix Runtime crash when parsing pubTime in RFC822 format (#5416)

6 years ago[bcl] Remove unused left over .args files
Alexander Köplinger [Tue, 22 Aug 2017 13:05:59 +0000 (15:05 +0200)]
[bcl] Remove unused left over .args files

6 years ago[MacSDK] Whitelist the csi script
Alexander Köplinger [Tue, 22 Aug 2017 10:49:35 +0000 (12:49 +0200)]
[MacSDK] Whitelist the csi script

6 years agoenable some tests for System.Text.UnicodeEncoding (#5414)
markusbeth [Tue, 22 Aug 2017 00:49:37 +0000 (02:49 +0200)]
enable some tests for System.Text.UnicodeEncoding (#5414)

Remove attribute Category ("NotWorking") from tests GetString_Odd_Count_0
and GetString_Odd_Count_ff as they are now working.

6 years ago[utils] Fix atomic fallout implementation function naming.
Rodrigo Kumpera [Mon, 21 Aug 2017 22:31:05 +0000 (15:31 -0700)]
[utils] Fix atomic fallout implementation function naming.

6 years ago[wasm] Add wasm stubs for MonoContext and membar ops.
Rodrigo Kumpera [Mon, 21 Aug 2017 22:30:16 +0000 (15:30 -0700)]
[wasm] Add wasm stubs for MonoContext and membar ops.

6 years ago[WASM] Hack configure.ac to support wasm. Use --enable-wasm instead of --host / ...
Rodrigo Kumpera [Mon, 21 Aug 2017 22:14:43 +0000 (15:14 -0700)]
[WASM] Hack configure.ac to support wasm. Use --enable-wasm instead of --host / --target

6 years agoMerge pull request #5406 from kumpera/fix_12157
Rodrigo Kumpera [Mon, 21 Aug 2017 20:18:31 +0000 (16:18 -0400)]
Merge pull request #5406 from kumpera/fix_12157

[verifier] Base constructors can only be called on uninit'd this pointers. Fix #12157.

6 years agoMerge pull request #5407 from kumpera/fix_31225
Rodrigo Kumpera [Mon, 21 Aug 2017 20:04:06 +0000 (16:04 -0400)]
Merge pull request #5407 from kumpera/fix_31225

[pedump] Have the assembly search hook look at the same directory of the assembly being verified.

6 years agoFix method-access.exe test (#5412)
Alexander Köplinger [Mon, 21 Aug 2017 15:33:40 +0000 (17:33 +0200)]
Fix method-access.exe test (#5412)

The exception message of a MethodAccessException was changed in 7b8811573784a244de3ce559ad4512e913ab31aa.
This caused the method-access.exe test to fail since it checked for the old format.

6 years agoDisable pinvoke2.exe test on OSX i386 for now (#5411)
Alexander Köplinger [Mon, 21 Aug 2017 15:09:06 +0000 (17:09 +0200)]
Disable pinvoke2.exe test on OSX i386 for now (#5411)

Reenable once https://bugzilla.xamarin.com/show_bug.cgi?id=58901 is fixed.

6 years ago[msi] Pull in MSI changes from Mono 5.2 branch
Jo Shields [Mon, 21 Aug 2017 13:59:36 +0000 (09:59 -0400)]
[msi] Pull in MSI changes from Mono 5.2 branch

(cherry picked from commit 929575bb0eba1139b786690e719844c4ef52b7db)

6 years agoBump libgdiplus (#5393)
Alexander Köplinger [Mon, 21 Aug 2017 13:28:44 +0000 (15:28 +0200)]
Bump libgdiplus (#5393)