mono.git
6 years agoMore codeowners update
Marek Safar [Mon, 4 Sep 2017 11:10:47 +0000 (13:10 +0200)]
More codeowners update

6 years agoUse `Unlocked* ()` for operations on `joinable_thread_count`
cherusker [Sun, 3 Sep 2017 17:54:35 +0000 (19:54 +0200)]
Use `Unlocked* ()` for operations on `joinable_thread_count`
- mark the (harmless) data race of the fastpath

6 years agoFix racy counter and unify the styles
cherusker [Mon, 4 Sep 2017 07:09:10 +0000 (09:09 +0200)]
Fix racy counter and unify the styles

6 years agoClarifying the usage of the --library option
HinTak [Fri, 1 Sep 2017 22:01:51 +0000 (23:01 +0100)]
Clarifying the usage of the --library option

I found that multiple libraries need to be specified in dependency order. That was not obvious from the man page. Make it explicit.

See https://bugzilla.xamarin.com/show_bug.cgi?id=59154

6 years ago[ci] Retry flaky tests only on PRs (#5492)
Alexander Köplinger [Fri, 1 Sep 2017 22:10:40 +0000 (00:10 +0200)]
[ci] Retry flaky tests only on PRs (#5492)

So we can still see failures in master and release branches.

6 years agoMerge pull request #5486 from kumpera/fix_array_dispatch_perf
Rodrigo Kumpera [Fri, 1 Sep 2017 20:50:40 +0000 (16:50 -0400)]
Merge pull request #5486 from kumpera/fix_array_dispatch_perf

[mini] Handle magic interfaces in common_trampoline as if they were variant.

6 years ago[mini] Remove never defined MONO_ARCH_STACK_GROWS_UP (#5491)
Ludovic Henry [Fri, 1 Sep 2017 17:49:29 +0000 (13:49 -0400)]
[mini] Remove never defined MONO_ARCH_STACK_GROWS_UP (#5491)

6 years ago[mini] Handle magic interfaces in common_trampoline as if they were variant.
Rodrigo Kumpera [Thu, 31 Aug 2017 23:06:58 +0000 (16:06 -0700)]
[mini] Handle magic interfaces in common_trampoline as if they were variant.

With the introduction of magic array interfaces, they must be handled as if they
were variant if they are being dispatched against an array.

This was not being done in common_trampoline and resulted in the IMT thunk never
getting rebuilt and getting decent perf.

With this patch, dispatch to simple methods such as Array::Count over a magic interface
in a covariant case (such as IList<object> dispatch onto string[]) will accrue gvi's.

On a trivial benchmark of executing Count 1M times, perf goes from 760ms to 50ms.

6 years agoImprove `class.c` for TSan instrumentation: (#5485)
Armin Hasitzka [Fri, 1 Sep 2017 13:44:25 +0000 (15:44 +0200)]
Improve `class.c` for TSan instrumentation: (#5485)

- use `Unlocked* ()` for `class_gparam_count`, `classes_size` and `inflated_methods_size`
- dead code: `class_ext_size`
- fix a typo: "the the" -> "let the"

6 years ago[bockbuild] Blacklist more llvm libraries/binaries. (#5488)
Zoltan Varga [Fri, 1 Sep 2017 13:42:25 +0000 (09:42 -0400)]
[bockbuild] Blacklist more llvm libraries/binaries. (#5488)

6 years ago[ci] Reenable xunit tests on Windows (#5487)
Alexander Köplinger [Fri, 1 Sep 2017 12:51:43 +0000 (14:51 +0200)]
[ci] Reenable xunit tests on Windows (#5487)

Should be fixed now that https://github.com/mono/mono/pull/5477 was merged.

6 years agoMerge pull request #5444 from hifi/fix-tds-inputoutput
Egor Bogatov [Fri, 1 Sep 2017 08:41:49 +0000 (11:41 +0300)]
Merge pull request #5444 from hifi/fix-tds-inputoutput

[System] Fix TDS 7.0 prepared InputOutput parameter info

6 years agomkbundle: add console confirmations of actions (#5457)
HinTak [Fri, 1 Sep 2017 08:29:25 +0000 (09:29 +0100)]
mkbundle: add console confirmations of actions (#5457)

Almost all the other "maker.Add()" are accompanied by console messages, except these two. User might worry about why they are missing. (I did!)

6 years agoFixing another confusing typo
HinTak [Sun, 27 Aug 2017 05:00:53 +0000 (13:00 +0800)]
Fixing another confusing typo

The file being added is the config of the last assembly read, not the runtime name.

6 years agoupdate comment
EgorBo [Wed, 30 Aug 2017 22:13:04 +0000 (01:13 +0300)]
update comment

6 years agoxunit on windows doesn't like ln to xunit.execution.desktop.dll, provide a copy
EgorBo [Wed, 30 Aug 2017 17:31:02 +0000 (20:31 +0300)]
xunit on windows doesn't like ln to xunit.execution.desktop.dll, provide a copy

6 years ago[w32file] Add 'kbfuse' filesystem type to known drive types array.
Aleksey Kliger [Thu, 31 Aug 2017 15:50:04 +0000 (11:50 -0400)]
[w32file] Add 'kbfuse' filesystem type to known drive types array.

It's the https://keybase.io desktop client filesystem

6 years ago[socket] Reduce handle manipulations in native (#5378)
Ludovic Henry [Thu, 31 Aug 2017 17:21:29 +0000 (13:21 -0400)]
[socket] Reduce handle manipulations in native (#5378)

6 years agoMerge pull request #5479 from marek-safar/cecil-bump
Marek Safar [Thu, 31 Aug 2017 17:13:04 +0000 (19:13 +0200)]
Merge pull request #5479 from marek-safar/cecil-bump

Bump cecil and linker

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

6 years agoAdd retrying of failed tests by default to reduce flaky tests (#5461)
Alexander Köplinger [Thu, 31 Aug 2017 15:04:23 +0000 (17:04 +0200)]
Add retrying of failed tests by default to reduce flaky tests (#5461)

Whenever a test fails we retry it five times and then decide the
overall result based on that. If three or more of the five retries
fail too then the overall result is FAIL, two or lower means PASS.

We're modifying nunitlite here so this only works for those tests
right now, we'd need to add it to the other test runners too.

6 years ago[cominterop] Get function ptr from interface before switching to blocking
Aleksey Kliger [Tue, 29 Aug 2017 23:02:24 +0000 (19:02 -0400)]
[cominterop] Get function ptr from interface before switching to blocking

The cominterop_get_function_pointer icall has a wrapper which has a
trampoline.  When we enter the trampoline mono_marshal_emit_native_wrapper
already switched us to blocking.

6 years ago[marshal] Don't use a wrapper for mono_marshal_set_last_error
Aleksey Kliger [Mon, 28 Aug 2017 18:21:36 +0000 (14:21 -0400)]
[marshal] Don't use a wrapper for mono_marshal_set_last_error

This fixes assertions due to d0e103fcb4ed3f0ba867052f9b5a4ac71faa0226 in
cooperative GC mode.

mono_marshal_set_last_error is called from a P/Invoke wrapper just after the
pinvoked method returns before we transition the thread state back to running
from blocking.  If mono_marshal_set_last_error had a wrapper, we would invoke
the trampoline (mono_magic_trampoline) to JIT the wrapper while in blocking
mode, which would trigger the assertion.

6 years ago[llvm] Add support for building with more recent versions of the mono llvm branch...
Zoltan Varga [Thu, 31 Aug 2017 12:51:47 +0000 (08:51 -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. (#5474)

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 ago[System] Fix TDS 7.0 prepared InputOutput parameter info
Toni Spets [Fri, 25 Aug 2017 05:29:16 +0000 (08:29 +0300)]
[System] Fix TDS 7.0 prepared InputOutput parameter info

Fixes ParameterDirection.InputOutput type parameters not sending
the "output" modifier to server which creates a conflict resulting
in an exception server side.

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.