mono.git
7 years agoMerge pull request #3085 from lateralusX/jlorenss/win-x64-pinvoke-empty-struct
Johan Lorensson [Thu, 9 Jun 2016 13:49:33 +0000 (15:49 +0200)]
Merge pull request #3085 from lateralusX/jlorenss/win-x64-pinvoke-empty-struct

Fix for non GCC win x64 calling convention when passing empty structs over pinvoke.

7 years agoMerge pull request #3139 from akoeplinger/dns-test
monojenkins [Thu, 9 Jun 2016 13:35:12 +0000 (14:35 +0100)]
Merge pull request #3139 from akoeplinger/dns-test

[System] Make ServicePointTest.DnsRefreshTimeout test more reliable

We are still seeing quite rare failures of this test:

```
HostEntry should result in the same IPHostEntry object.
  Expected: same as <System.Net.IPHostEntry>
  But was:  <System.Net.IPHostEntry>

+++++++++++++++++++
STACK TRACE:
at MonoTests.System.Net.ServicePointTest.DnsRefreshTimeout () [0x00045] in /Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/mcs/class/System/Test/System.Net/ServicePointTest.cs:228
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/mcs/class/corlib/System.Reflection/MonoMethod.cs:309
```

Since the test is only checking if expiring of the cached DNS lookup works, we don't really need to use an external domain name for this as "localhost" works just fine as well and typically doesn't trigger a DNS query which makes the test more reliable against network issues.

@monojenkins merge

7 years ago[mcs] Recognize indexer with accessors using different names. Fixes #41602
Marek Safar [Thu, 9 Jun 2016 12:58:49 +0000 (14:58 +0200)]
[mcs] Recognize indexer with accessors using different names. Fixes #41602

7 years ago[System] Make ServicePointTest.DnsRefreshTimeout test more reliable
Alexander Köplinger [Thu, 9 Jun 2016 11:24:13 +0000 (13:24 +0200)]
[System] Make ServicePointTest.DnsRefreshTimeout test more reliable

We are still seeing quite rare failures of this test:

```
HostEntry should result in the same IPHostEntry object.
  Expected: same as <System.Net.IPHostEntry>
  But was:  <System.Net.IPHostEntry>

+++++++++++++++++++
STACK TRACE:
at MonoTests.System.Net.ServicePointTest.DnsRefreshTimeout () [0x00045] in /Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/mcs/class/System/Test/System.Net/ServicePointTest.cs:228
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/mcs/class/corlib/System.Reflection/MonoMethod.cs:309
```

Since the test is only checking if expiring of the cached DNS lookup works, we don't really need to use an external domain name for this
as "localhost" works just fine as well and typically doesn't trigger a DNS query which makes the test more reliable against network issues.

7 years agoMerge pull request #3138 from akoeplinger/fix-win
Alexander Köplinger [Thu, 9 Jun 2016 09:52:05 +0000 (11:52 +0200)]
Merge pull request #3138 from akoeplinger/fix-win

[metadata] Fix Windows gcc build break

7 years ago[mcs] Bump ikvm to fix assembly unification rules
Marek Safar [Thu, 9 Jun 2016 08:30:40 +0000 (10:30 +0200)]
[mcs] Bump ikvm to fix assembly unification rules

7 years ago[metadata] Fix Windows gcc build break
Alexander Köplinger [Thu, 9 Jun 2016 00:53:26 +0000 (02:53 +0200)]
[metadata] Fix Windows gcc build break

After 680fe21e6952ba6dc73ad89095b34ebb3a9bfc86 it failed with:

```
coree.c: In function '_CorExeMain':
coree.c:200:2: error: implicit declaration of function 'mono_runtime_run_main_checked' [-Werror=implicit-function-declaration]
  mono_runtime_run_main_checked (method, argc, argv, &error);
  ^
[...]
Makefile:2137: recipe for target 'libmonoruntime_la-coree.lo' failed
make[3]: *** [libmonoruntime_la-coree.lo] Error 1
```

7 years ago[sgen] Scatterplot option for gcpauseviz.
Mark Probst [Wed, 8 Jun 2016 23:01:51 +0000 (16:01 -0700)]
[sgen] Scatterplot option for gcpauseviz.

7 years agoMerge pull request #3135 from kumpera/enable_conc_gc_on_mainline_archs
Rodrigo Kumpera [Wed, 8 Jun 2016 22:33:27 +0000 (15:33 -0700)]
Merge pull request #3135 from kumpera/enable_conc_gc_on_mainline_archs

[jenkins] Make the concurrent GC the default on mainline archtectures.

7 years ago[jenkins] Make the concurrent GC the default on mainline archtectures.
Rodrigo Kumpera [Wed, 8 Jun 2016 22:12:34 +0000 (15:12 -0700)]
[jenkins] Make the concurrent GC the default on mainline archtectures.

7 years agoMerge pull request #3090 from alexanderkyte/remove_deprecated_assertions
Alexander Köplinger [Wed, 8 Jun 2016 21:04:00 +0000 (23:04 +0200)]
Merge pull request #3090 from alexanderkyte/remove_deprecated_assertions

[mobile_static] Remove deprecated assertions

7 years ago[corlib] Fix tests for watchOS. (#3131)
Rolf Bjarne Kvinge [Wed, 8 Jun 2016 20:46:11 +0000 (22:46 +0200)]
[corlib] Fix tests for watchOS. (#3131)

7 years ago[llvm] Enable support for the atomic store intrinsics when running with llvmonly.
Zoltan Varga [Wed, 8 Jun 2016 18:58:07 +0000 (14:58 -0400)]
[llvm] Enable support for the atomic store intrinsics when running with llvmonly.

7 years agoMerge pull request #3117 from alexrp/master
Alex Rønne Petersen [Wed, 8 Jun 2016 16:04:48 +0000 (18:04 +0200)]
Merge pull request #3117 from alexrp/master

Fix a few socket test failures on Android

7 years agoMerge pull request #3093 from lambdageek/dev/monoerror-exec
Aleksey Kliger (λgeek) [Wed, 8 Jun 2016 14:35:46 +0000 (10:35 -0400)]
Merge pull request #3093 from lambdageek/dev/monoerror-exec

[runtime] Mark mono_runtime_{run,exec}_main external only.

7 years ago[sockets] Correctly report that Linux supports double binding for UDP, even on old...
Alex Rønne Petersen [Wed, 8 Jun 2016 13:27:47 +0000 (15:27 +0200)]
[sockets] Correctly report that Linux supports double binding for UDP, even on old kernels.

7 years ago[mcs] Improve betterness changes in b12385e9fdedd5b146d00a56687c886a647e1865
Marek Safar [Wed, 8 Jun 2016 13:25:52 +0000 (15:25 +0200)]
[mcs] Improve betterness changes in b12385e9fdedd5b146d00a56687c886a647e1865

7 years ago[System] Fixes compiler warning
Marek Safar [Tue, 7 Jun 2016 21:28:28 +0000 (23:28 +0200)]
[System] Fixes compiler warning

7 years ago[System] Make SocketAsyncTest.SendAsync give more helpful failures.
Alex Rønne Petersen [Tue, 7 Jun 2016 18:24:14 +0000 (20:24 +0200)]
[System] Make SocketAsyncTest.SendAsync give more helpful failures.

7 years ago[build] Add llvm folder to SUBDIRS/DIST_SUBDIRS
Alexander Köplinger [Wed, 8 Jun 2016 12:05:50 +0000 (14:05 +0200)]
[build] Add llvm folder to SUBDIRS/DIST_SUBDIRS

This ensures all the right files are packaged in the tarball.

7 years agoMerge pull request #3122 from akoeplinger/fix-41530
Alexander Köplinger [Wed, 8 Jun 2016 10:47:41 +0000 (12:47 +0200)]
Merge pull request #3122 from akoeplinger/fix-41530

[System] Make TimerTest.EnabledInElapsed more reliable

7 years agoMerge pull request #3120 from esdrubal/syscall_details
Marcos Henrich [Wed, 8 Jun 2016 08:03:20 +0000 (09:03 +0100)]
Merge pull request #3120 from esdrubal/syscall_details

Fixes SendAsyncFile flaky failures

7 years ago[runtime] Only print out the value of MONO_EXTRA_CONFIGURE_FLAGS when it is set.
Zoltan Varga [Wed, 8 Jun 2016 07:05:16 +0000 (03:05 -0400)]
[runtime] Only print out the value of MONO_EXTRA_CONFIGURE_FLAGS when it is set.

7 years agoMerge pull request #3118 from kumpera/fix_getname
Rodrigo Kumpera [Wed, 8 Jun 2016 00:22:55 +0000 (17:22 -0700)]
Merge pull request #3118 from kumpera/fix_getname

[corlib] Handle user Assembly subclass and Assembly::GetName.

7 years ago[System] Make TimerTest.EnabledInElapsed more reliable
Alexander Köplinger [Tue, 7 Jun 2016 15:20:09 +0000 (17:20 +0200)]
[System] Make TimerTest.EnabledInElapsed more reliable

We were seeing intermittent failures on devices like:

```
[FAIL] TimerTest.EnabledInElapsed :   #1 loss of events
  Expected: True
  But was:  False

  at MonoTests.System.Timers.TimerTest.EnabledInElapsed () <0x33b168 + 0x0014f> in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object , BindingFlags , System.Reflection.Binder , System.Object[] , System.Globalization.CultureInfo ) <0x66d400 + 0x000b7> in <filename unknown>:0
```

Since OS scheduling and GCs can influence the exact timing of the timer intervals sleeping for 200ms is likely just too short.
Instead of bumping the timeout, I decided to rewrite the test to not rely on Thread.Sleep ().
I also added another test which verifies setting AutoResetEvent=false stops the timer event from firing after the first one,
which was implicitly tested before by the other test.

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

7 years agoMerge pull request #3114 from alexanderkyte/mono_conf_gc
Rodrigo Kumpera [Tue, 7 Jun 2016 22:44:03 +0000 (15:44 -0700)]
Merge pull request #3114 from alexanderkyte/mono_conf_gc

[runtime] Add configuration for the default sgen gc mode

7 years agoMerge pull request #3112 from akoeplinger/test-runner-nofile
Alexander Köplinger [Tue, 7 Jun 2016 22:18:39 +0000 (00:18 +0200)]
Merge pull request #3112 from akoeplinger/test-runner-nofile

[test-runner] Write stdout/stderr into StringBuilder instead of an intermediate file

7 years agoMore updates
Miguel de Icaza [Tue, 7 Jun 2016 21:53:36 +0000 (17:53 -0400)]
More updates

7 years ago[corlib] Handle user Assembly subclass and Assembly::GetName.
Rodrigo Kumpera [Tue, 7 Jun 2016 06:28:31 +0000 (23:28 -0700)]
[corlib] Handle user Assembly subclass and Assembly::GetName.

Remove UnprotectedGetName and replace with overriding of GetName.

dotnet throws NIE if you subclass Assembly and call GetName on it.
We hard crashed.

7 years agoFix make dist
Alexander Köplinger [Tue, 7 Jun 2016 20:43:16 +0000 (22:43 +0200)]
Fix make dist

It got broken when the versions.py file was moved around in d110f526706b7c4880ca916e2dfbab93138871cd.
Also add the new locations to EXTRA_DIST so they get distributed too.

7 years agoMerge pull request #3119 from kumpera/fix-getname-and-shadowcopy
Rodrigo Kumpera [Tue, 7 Jun 2016 19:51:27 +0000 (12:51 -0700)]
Merge pull request #3119 from kumpera/fix-getname-and-shadowcopy

[corlib] Take shadow copying when computing CodeBase in Assembly::GetName.

7 years agoMerge pull request #3082 from alexanderkyte/no_alloc_klass_error
Aleksey Kliger (λgeek) [Tue, 7 Jun 2016 19:23:17 +0000 (15:23 -0400)]
Merge pull request #3082 from alexanderkyte/no_alloc_klass_error

[runtime] Set klass-error-based MonoError state without allocating

7 years ago[mobile_status] Fix nullable type ambiguity that nunit-lite complains about
Alexander Kyte [Thu, 2 Jun 2016 23:27:57 +0000 (19:27 -0400)]
[mobile_status] Fix nullable type ambiguity that nunit-lite complains about

7 years ago[mobile_static] Remove use of CollectionAssert, missing in nunit-lite
Alexander Kyte [Mon, 23 May 2016 22:42:57 +0000 (18:42 -0400)]
[mobile_static] Remove use of CollectionAssert, missing in nunit-lite

7 years ago[mobile_static] Remove uses of deprecated Assertion.cs nunit helper.
Alexander Kyte [Thu, 2 Jun 2016 01:15:27 +0000 (21:15 -0400)]
[mobile_static] Remove uses of deprecated Assertion.cs nunit helper.

7 years agoMerge pull request #3110 from BrzVlad/fix-complex-conc-scan
Rodrigo Kumpera [Tue, 7 Jun 2016 18:38:27 +0000 (11:38 -0700)]
Merge pull request #3110 from BrzVlad/fix-complex-conc-scan

[sgen] Fix concurrent scan of complex objects

7 years ago[Socket] Check for SocketOptionLevel.Socket before checking for SocketOptionName...
Alex Rønne Petersen [Tue, 7 Jun 2016 03:01:25 +0000 (05:01 +0200)]
[Socket] Check for SocketOptionLevel.Socket before checking for SocketOptionName.ReuseAddress.

Without doing this, the check would consider a valid option name like
IpTimeToLive to be the same as ReuseAddress, as they share the same enum
value.

Fixes SocketTest.TtlChange and SocketTest.UdpMulticasTimeToLive on Android and
other platforms that don't support ReuseAddress.

7 years agoMerge pull request #3124 from mono/revert-2734-master
Alexander Köplinger [Tue, 7 Jun 2016 16:45:29 +0000 (18:45 +0200)]
Merge pull request #3124 from mono/revert-2734-master

Revert "Enhance log tracing"

7 years agoRevert "Enhance log tracing"
Alexander Köplinger [Tue, 7 Jun 2016 16:45:09 +0000 (18:45 +0200)]
Revert "Enhance log tracing"

7 years ago[runtime] Add environment variable to pass additional configure options
Alexander Kyte [Tue, 7 Jun 2016 16:29:39 +0000 (12:29 -0400)]
[runtime] Add environment variable to pass additional configure options

7 years ago[runtime] Add new configure option for default sgen GC mode
Alexander Kyte [Tue, 7 Jun 2016 16:29:23 +0000 (12:29 -0400)]
[runtime] Add new configure option for default sgen GC mode

7 years ago[amd64] Fix an off-by-one in the dyn call code.
Zoltan Varga [Tue, 7 Jun 2016 16:16:59 +0000 (12:16 -0400)]
[amd64] Fix an off-by-one in the dyn call code.

7 years agoLlvm submodule (#3108)
Zoltan Varga [Tue, 7 Jun 2016 14:46:33 +0000 (10:46 -0400)]
Llvm submodule (#3108)

* Move the versions.mk infrastructure to scripts/submodules so it can be used elsewhere too.

* Add a conditional submodule for llvm.

* Fix commit messages emitted by the bump- targets.

* Use a anonymous git url for llvm.

7 years ago[runtime] Fixed interruptible wapi_sendfile.
Marcos Henrich [Tue, 7 Jun 2016 13:06:53 +0000 (14:06 +0100)]
[runtime] Fixed interruptible wapi_sendfile.

Before closing a socket we try to interrupt and wait for all socket
pending system calls to return. For that we set the socket as non
blocking which makes the system calls to return with EAGAIN\EWOULDBLOCK.

This issue was caught by System.Net.Sockets.SocketTest.SendAsyncFile
that was intermittently failing, we were only able to reproduce it while
running multiple test suites in parallel. We now can say that it only failed when
the the socket was closed and the sendfile was waiting for the OS to
allocate enough resources to send the file.

This was fixed by changing wapi_sendfile to return on EAGAIN.

7 years ago[System] Improved "Could not abort" exception.
Marcos Henrich [Tue, 7 Jun 2016 09:38:29 +0000 (10:38 +0100)]
[System] Improved "Could not abort" exception.

Stack traces of blocked threads are now displayed on the exception.

The threads stacktraces are only stored when MONO_TESTS_IN_PROGRESS env
var is set to yes.

7 years ago[runtime][mobile_static] Add flag for rgctx_fetch_trampolines and use it (#3088)
Alexander Kyte [Tue, 7 Jun 2016 11:44:40 +0000 (07:44 -0400)]
[runtime][mobile_static] Add flag for rgctx_fetch_trampolines and use it (#3088)

* [runtime] Add commandline option for rgctx fetch trampolines.

* [mobile_static] Increase the number of trampolines

7 years agoSmaller adjustments based on PR feedback.
lateralusX [Tue, 7 Jun 2016 09:35:02 +0000 (11:35 +0200)]
Smaller adjustments based on PR feedback.

7 years ago[runtime] Call mono_class_init () for classes in mono_class_is_subclass_of (). Fixes...
Zoltan Varga [Tue, 7 Jun 2016 08:08:41 +0000 (04:08 -0400)]
[runtime] Call mono_class_init () for classes in mono_class_is_subclass_of (). Fixes #41466.

7 years ago[corlib] Take shadow copying when computing CodeBase in Assembly::GetName.
Rodrigo Kumpera [Tue, 7 Jun 2016 06:36:32 +0000 (23:36 -0700)]
[corlib] Take shadow copying when computing CodeBase in Assembly::GetName.

7 years agoMerge pull request #3116 from alexrp/master
Alex Rønne Petersen [Tue, 7 Jun 2016 01:35:36 +0000 (03:35 +0200)]
Merge pull request #3116 from alexrp/master

Some improvements to the profiler makefile

7 years ago[sgen] Make gcpauseviz histograms more meaningful.
Mark Probst [Mon, 6 Jun 2016 23:36:14 +0000 (16:36 -0700)]
[sgen] Make gcpauseviz histograms more meaningful.

There were too many bins, because the x axis was not logarithmic, and
there were no meaningful labels.

7 years ago[sgen] Fix gcpauseviz.
Mark Probst [Mon, 6 Jun 2016 23:17:58 +0000 (16:17 -0700)]
[sgen] Fix gcpauseviz.

It didn't detect starts of concurrent collections anymore because of how
the binary protocol outputs it.

7 years ago[profiler] Don't install the coverage suppression file if the profiler is disabled.
Alex Rønne Petersen [Mon, 6 Jun 2016 22:49:04 +0000 (00:49 +0200)]
[profiler] Don't install the coverage suppression file if the profiler is disabled.

7 years ago[profiler] Don't run the test suite when the profiler is disabled.
Alex Rønne Petersen [Mon, 6 Jun 2016 22:44:58 +0000 (00:44 +0200)]
[profiler] Don't run the test suite when the profiler is disabled.

Also clean up the makefile logic surrounding tests a bit.

7 years agoMerge pull request #3113 from akoeplinger/boehm-fixes
Alexander Köplinger [Mon, 6 Jun 2016 21:44:35 +0000 (23:44 +0200)]
Merge pull request #3113 from akoeplinger/boehm-fixes

[ci] Turn off Boehm on Windows x64 gcc build

7 years ago[offsets-tool] Generate offsets for SgenClientThreadInfo.
Zoltan Varga [Mon, 6 Jun 2016 20:48:02 +0000 (16:48 -0400)]
[offsets-tool] Generate offsets for SgenClientThreadInfo.

7 years ago[sgen] Fix define argument
Vlad Brezae [Mon, 6 Jun 2016 12:37:03 +0000 (15:37 +0300)]
[sgen] Fix define argument

The code worked by accident because the function in which the define was expanded had an argument with the name desc.

7 years ago[sgen] Fix race between complex descriptor allocation and complex object scanning
Vlad Brezae [Mon, 6 Jun 2016 12:19:12 +0000 (15:19 +0300)]
[sgen] Fix race between complex descriptor allocation and complex object scanning

When we allocate the complex descriptor for a new type we might have the concurrent marker scan objects. While the concurrent marker scans the bitmap for a complex object, which resides in the complex_descriptor array, another thread might allocate a new complex descriptor, thus reallocate the complex_descriptor array, which would lead to corruption of the bitmap used by the concurrent marker.

We reuse the SgenArrayList which never reallocates, using instead a list of exponentially increasing arrays.

7 years agoOnly define Boehm variables in configure.ac when it is enabled
Alexander Köplinger [Mon, 6 Jun 2016 19:18:45 +0000 (21:18 +0200)]
Only define Boehm variables in configure.ac when it is enabled

Fix the message that is printed in the configure summary at the end to contain only "sgen" when Boehm is disabled.

7 years ago[ci] Turn off Boehm on Windows x64 gcc build
Alexander Köplinger [Mon, 6 Jun 2016 19:07:07 +0000 (21:07 +0200)]
[ci] Turn off Boehm on Windows x64 gcc build

It was never supported there, turn it off to fix the build on Jenkins.

7 years ago[amd64] Fix a loop variable reuse in a58c2ef804779be70832c6b0e092fbca1edaebf1.
Zoltan Varga [Mon, 6 Jun 2016 19:04:06 +0000 (15:04 -0400)]
[amd64] Fix a loop variable reuse in a58c2ef804779be70832c6b0e092fbca1edaebf1.

7 years agoMerge pull request #3100 from lambdageek/dev/monoerror-exns
Aleksey Kliger (λgeek) [Mon, 6 Jun 2016 18:39:05 +0000 (14:39 -0400)]
Merge pull request #3100 from lambdageek/dev/monoerror-exns

[runtime] Pass MonoError to exception creation utilities

7 years ago[sgen] Make sure we will scan the bits correctly for complex objects
Vlad Brezae [Mon, 6 Jun 2016 11:19:40 +0000 (14:19 +0300)]
[sgen] Make sure we will scan the bits correctly for complex objects

7 years ago[sgen] Add missing memory type description
Vlad Brezae [Mon, 6 Jun 2016 00:54:25 +0000 (03:54 +0300)]
[sgen] Add missing memory type description

7 years agoMerge pull request #3104 from lambdageek/dev/monoerror-resolve_vcall
Aleksey Kliger (λgeek) [Mon, 6 Jun 2016 18:01:44 +0000 (14:01 -0400)]
Merge pull request #3104 from lambdageek/dev/monoerror-resolve_vcall

[llvm] Raise MonoError using mono_llvm_throw_exception

7 years ago[jit] Fix the emission of Selector.GetHandle () implementation to avoid the creation...
Zoltan Varga [Mon, 6 Jun 2016 17:21:54 +0000 (13:21 -0400)]
[jit] Fix the emission of Selector.GetHandle () implementation to avoid the creation of string objects, which could cause GCs don't work in a cross compiler. Fixes #41431.

7 years ago[test-runner] Write stdout/stderr into StringBuilder instead of an intermediate file
Alexander Köplinger [Mon, 6 Jun 2016 16:09:14 +0000 (18:09 +0200)]
[test-runner] Write stdout/stderr into StringBuilder instead of an intermediate file

We don't need to write out and then read back in the contents. Additionally, this will prevent
an unhandled exception we've seen on Jenkins due:

```
Unhandled Exception:
System.IO.IOException: Sharing violation on path /media/ssd/jenkins/workspace/test-mono-mainline-linux/label/debian-8-arm64/mono/tests/finalizer-wait.exe.stdout
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) <0x7f7eb4a740 + 0x00650> in <filename unknown>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) <0x7f7eb4a620 + 0x00053> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) <0x7f7e9b2170 + 0x000f3> in <filename unknown>:0
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) <0x7f7e9b2120 + 0x00037> in <filename unknown>:0
  at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) <0x7f7e9b2040 + 0x0003b> in <filename unknown>:0
  at System.IO.StreamReader..ctor (System.String path) <0x7f7e9b2010 + 0x0001f> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
  at System.IO.File.ReadAllText (System.String path) <0x7f7eb48c70 + 0x0003b> in <filename unknown>:0
  at TestRunner.DumpPseudoTrace (System.String filename) <0x7f7cfc6450 + 0x00023> in <filename unknown>:0
  at TestRunner.Main (System.String[] args) <0x7f8128b770 + 0x01ed3> in <filename unknown>:0
```

7 years ago[test-runner] Print timeout value when test times out
Alexander Köplinger [Mon, 6 Jun 2016 16:06:06 +0000 (18:06 +0200)]
[test-runner] Print timeout value when test times out

This is useful when multiple timeouts are in place e.g. like in the runtime testsuite.

7 years agoMerge pull request #3111 from directhex/sed-before-sign
Marek Safar [Mon, 6 Jun 2016 16:01:19 +0000 (18:01 +0200)]
Merge pull request #3111 from directhex/sed-before-sign

Move call to sn.exe to *after* cil-stringreplacer.exe

7 years agoMerge pull request #2734 from nealef/master
Aleksey Kliger (λgeek) [Mon, 6 Jun 2016 16:00:47 +0000 (12:00 -0400)]
Merge pull request #2734 from nealef/master

Enhance log tracing

7 years agoMove call to sn.exe to *after* cil-stringreplacer.exe
Jo Shields [Mon, 6 Jun 2016 15:57:24 +0000 (16:57 +0100)]
Move call to sn.exe to *after* cil-stringreplacer.exe

This makes sure mscorlib.dll still has a valid signature (fixes nightly builds on Linux)

7 years agoMerge pull request #3070 from kumpera/runtime-handles
Rodrigo Kumpera [Mon, 6 Jun 2016 15:42:34 +0000 (08:42 -0700)]
Merge pull request #3070 from kumpera/runtime-handles

Local handles initial drop

7 years agoMerge pull request #3083 from alexrp/gc-pointless-memory-barrier
Rodrigo Kumpera [Mon, 6 Jun 2016 15:37:39 +0000 (08:37 -0700)]
Merge pull request #3083 from alexrp/gc-pointless-memory-barrier

[sgen] Remove a pointless memory barrier from the middle of the managed allocator.

7 years ago[System] Override SupportsHeaders in all WebResponse overrides
Marek Safar [Mon, 6 Jun 2016 14:58:29 +0000 (16:58 +0200)]
[System] Override SupportsHeaders in all WebResponse overrides

7 years ago[amd64] Enable dyncall tests on amd64.
Zoltan Varga [Mon, 6 Jun 2016 13:52:28 +0000 (09:52 -0400)]
[amd64] Enable dyncall tests on amd64.

7 years ago[amd64] Support stack args in dyn calls.
Zoltan Varga [Mon, 6 Jun 2016 13:50:31 +0000 (09:50 -0400)]
[amd64] Support stack args in dyn calls.

7 years ago[amd64] Handle ArgValuetypeAddrInIReg in dyncalls.
Zoltan Varga [Mon, 6 Jun 2016 11:39:36 +0000 (07:39 -0400)]
[amd64] Handle ArgValuetypeAddrInIReg in dyncalls.

7 years ago[mini] Set pending MonoError in mono_vcall_trampoline (#3107)
Aleksey Kliger (λgeek) [Sat, 4 Jun 2016 09:02:48 +0000 (05:02 -0400)]
[mini] Set pending MonoError in mono_vcall_trampoline (#3107)

7 years agoRemove unused header.
Rodrigo Kumpera [Tue, 31 May 2016 20:58:26 +0000 (13:58 -0700)]
Remove unused header.

7 years ago[coop] New local handles implementation.
Rodrigo Kumpera [Sat, 28 May 2016 01:03:56 +0000 (18:03 -0700)]
[coop] New local handles implementation.

This is the initial code drop of a new handles implementation.

It differs from the previous one is a few ways:

- It keeps a separate stack of handles which is shared by all "arenas".
This eliminates malloc in the majority of the cases without the need for any tuning

- Custom gc scanning code for the handles stack.
The original implementation registered the chunks as a GC roots. Which is a terribly
slow operation as it takes the GC lock.

Instead of allocating a new handle arena for each icall, we compute a stack mark,
which is the position in the handles stack at icall entry. On exit, we simply restore that
position, which is just a couple of stores.

Since the stack is implemented using arraylets, addressed are stable in the face of
expansion.

Only the typed handles function/macros are in as having both typed and untyped handles
adds extra complexity for no clear value.

The macros only handle what was needed to port a sizeable chunk of locales.c.

This commit just sets the stage for the feature, there's quite some work left
before we can start using it, as it can be seen in the big TODO in handle.c

7 years ago[sgen] Fix scan thread data job to set ops so it can do precise scanning.
Rodrigo Kumpera [Sat, 28 May 2016 01:03:38 +0000 (18:03 -0700)]
[sgen] Fix scan thread data job to set ops so it can do precise scanning.

7 years ago[mono-error] Fix error_init macro to work with MonoError pointers.
Rodrigo Kumpera [Sat, 28 May 2016 01:01:17 +0000 (18:01 -0700)]
[mono-error] Fix error_init macro to work with MonoError pointers.

7 years ago[llvm] Propagate MonoError out of mini_resolve_imt_method
Aleksey Kliger [Fri, 3 Jun 2016 18:35:21 +0000 (14:35 -0400)]
[llvm] Propagate MonoError out of mini_resolve_imt_method

To the enclosing llvm jit icalls

7 years agoUse %Y-%m-%d %H:%M:%S for Windows log message header
Neale Ferguson [Fri, 3 Jun 2016 17:33:23 +0000 (13:33 -0400)]
Use %Y-%m-%d %H:%M:%S for Windows log message header

7 years agoMerge pull request #3040 from xmcclure/debugger-step-recursive
Andi McClure [Fri, 3 Jun 2016 17:08:23 +0000 (13:08 -0400)]
Merge pull request #3040 from xmcclure/debugger-step-recursive

Debugger stepping does not understand recursion (bug 38025)

7 years ago[genproj] Update project files
Miguel de Icaza [Fri, 3 Jun 2016 16:26:03 +0000 (12:26 -0400)]
[genproj] Update project files

7 years ago[jit] Pass MonoError to resolve_vcall
Aleksey Kliger [Thu, 2 Jun 2016 21:40:07 +0000 (17:40 -0400)]
[jit] Pass MonoError to resolve_vcall

7 years ago[System] Flush few colliding changes
Marek Safar [Fri, 3 Jun 2016 16:04:33 +0000 (18:04 +0200)]
[System] Flush few colliding changes

7 years ago[runtime] Use new mono_error_set_for_class_failure where applicable.
Alexander Kyte [Tue, 31 May 2016 21:13:21 +0000 (17:13 -0400)]
[runtime] Use new mono_error_set_for_class_failure where applicable.

We were seeing an issue where attempts to create the MonoClass for an
exception in a no-exec context was causing failure. No-exec will forbid
the constructor call. Our solution was to realize that there was no
need to allocate an exception, as MonoError could already encode the
errors.

7 years ago[runtime] Make helper to set MonoError directly from MonoClass error
Alexander Kyte [Tue, 31 May 2016 21:04:33 +0000 (17:04 -0400)]
[runtime] Make helper to set MonoError directly from MonoClass error

7 years agoCorrect typo
Neale Ferguson [Fri, 3 Jun 2016 14:56:34 +0000 (10:56 -0400)]
Correct typo

7 years agoCorrect for widechar on Windows
Neale Ferguson [Fri, 3 Jun 2016 14:34:35 +0000 (10:34 -0400)]
Correct for widechar on Windows

7 years ago[mcs] Fixes NRE during error reporting
Marek Safar [Fri, 3 Jun 2016 14:21:13 +0000 (16:21 +0200)]
[mcs] Fixes NRE during error reporting

7 years ago[System] Remove duplicate file entry
Marek Safar [Fri, 3 Jun 2016 14:20:52 +0000 (16:20 +0200)]
[System] Remove duplicate file entry

7 years agoSeveral corrections thanks to Johan Lorensson
Neale Ferguson [Fri, 3 Jun 2016 13:57:11 +0000 (09:57 -0400)]
Several corrections thanks to Johan Lorensson

7 years ago[WinForms] Fix build broken by 5d54803af7af4c78cfeac020e0e2046b1282af91
Alexander Köplinger [Fri, 3 Jun 2016 13:13:10 +0000 (15:13 +0200)]
[WinForms] Fix build broken by 5d54803af7af4c78cfeac020e0e2046b1282af91

7 years agoCorrecty initialize image ref_count. Ensures image is correctly unloaded during appdo...
Jonathan Chambers [Fri, 3 Jun 2016 13:13:41 +0000 (09:13 -0400)]
Correcty initialize image ref_count. Ensures image is correctly unloaded during appdomain unload. (#3084)

7 years agoMerge pull request #3102 from alexrp/master
Marek Safar [Fri, 3 Jun 2016 09:04:40 +0000 (11:04 +0200)]
Merge pull request #3102 from alexrp/master

[System] Add back IWebProxyScript to the mobile profile.

7 years ago[System] Add back IWebProxyScript to the mobile profile.
Alex Rønne Petersen [Fri, 3 Jun 2016 08:09:00 +0000 (10:09 +0200)]
[System] Add back IWebProxyScript to the mobile profile.

7 years agoSWF - Fixed exiting modal runloop. (#2980)
Jiří Volejník [Fri, 3 Jun 2016 07:09:24 +0000 (09:09 +0200)]
SWF - Fixed exiting modal runloop. (#2980)

Fixes a bug in exiting modal runloop that caused not really exiting it
(not calling XplatUI.SetModal(..., false).

It caused issues with menu, for example, if you first ran a modal
dialog (a wizard), and then you started the application.