mono.git
8 years ago[Dataflow] Fix flaky tests by bumping timeouts
Alexander Köplinger [Wed, 11 Nov 2015 21:40:28 +0000 (22:40 +0100)]
[Dataflow] Fix flaky tests by bumping timeouts

We were seeing random Dataflow tests fail on Jenkins from time to time.
I managed to reproduce the BroadcastBlockTest.CloningTest and WriteOnceBlockTest.CloningTest
fail on my machine by generating CPU load and running those test in a while(true).

Bumping the timeouts from 100ms -> 1s fixed the flakiness for me, so I went ahead and
opportunistically bumped all such small timeouts throughout the testsuite.

8 years agoMerge pull request #2207 from lambdageek/dev/bug-35375
Rodrigo Kumpera [Wed, 11 Nov 2015 19:42:40 +0000 (14:42 -0500)]
Merge pull request #2207 from lambdageek/dev/bug-35375

[reflection] Fix for  35375 - explicit interface implementation using a generic type instance

8 years agoMerge pull request #2198 from BrzVlad/feature-concurrent-work
Mark Probst [Wed, 11 Nov 2015 19:26:25 +0000 (11:26 -0800)]
Merge pull request #2198 from BrzVlad/feature-concurrent-work

[sgen] Fix memory use of the concurrent collector

8 years agoMerge pull request #2217 from rcruzs00/master
Rodrigo Kumpera [Wed, 11 Nov 2015 17:05:07 +0000 (12:05 -0500)]
Merge pull request #2217 from rcruzs00/master

El Capitan fix : system integrity protection compatibility

8 years ago[runtime] mono_class_init() - don't look for metadata if the dynamic image doesn...
Aleksey Kliger [Fri, 6 Nov 2015 22:45:38 +0000 (17:45 -0500)]
[runtime] mono_class_init() - don't look for metadata if the dynamic image doesn't have it.

8 years agoCrashing test in mono_class_init() from a MonoGenericClass.
Aleksey Kliger [Fri, 6 Nov 2015 16:33:12 +0000 (11:33 -0500)]
Crashing test in mono_class_init() from a MonoGenericClass.

[#35375](https://bugzilla.xamarin.com/show_bug.cgi?id=35375)

8 years agoEl Capitan fix : system integrity protection compatibility
Rafael Cruz [Wed, 11 Nov 2015 01:31:49 +0000 (23:31 -0200)]
El Capitan fix : system integrity protection compatibility

8 years agoMerge pull request #2216 from akoeplinger/fix-array-sort
Alexander Köplinger [Tue, 10 Nov 2015 23:24:18 +0000 (00:24 +0100)]
Merge pull request #2216 from akoeplinger/fix-array-sort

[corlib] Fix Array.Sort throwing when fewer keys than items are provided

8 years agoMerge pull request #2215 from kumpera/crash_in_mono_class_get_method_from_name_flags
Rodrigo Kumpera [Tue, 10 Nov 2015 23:12:46 +0000 (18:12 -0500)]
Merge pull request #2215 from kumpera/crash_in_mono_class_get_method_from_name_flags

[runtime] Fix bad assert in mono_class_get_method_from_name_flags.

8 years ago[runtime] Fix a few more class->klass cases.
Zoltan Varga [Tue, 10 Nov 2015 21:42:34 +0000 (16:42 -0500)]
[runtime] Fix a few more class->klass cases.

8 years ago[runtime] Use 'klass' instead of 'class' to make the code more c++ friendly.
Zoltan Varga [Tue, 10 Nov 2015 21:20:28 +0000 (16:20 -0500)]
[runtime] Use 'klass' instead of 'class' to make the code more c++ friendly.

8 years ago[corlib] Fix Array.Sort throwing when fewer keys than items are provided
Alexander Köplinger [Mon, 9 Nov 2015 19:56:18 +0000 (20:56 +0100)]
[corlib] Fix Array.Sort throwing when fewer keys than items are provided

The `Sort<TKey, TValue> (TKey [] keys, TValue [] items, IComparer<TKey> comparer)` overload in Array throwed when keys.Length != items.Length.
However, on .NET you can pass in a keys array with fewer elements than in items and it'd sort the elements in items up to that point.

Fixed our implementation by only throwing when keys.Length > items.Length.

This was revealed by the coreclr/tests/src/CoreMangLib/cti/system/array/arraysort12.exe test.
I decided to port the test into our testsuite so we catch regressions earlier.

8 years ago[Mono.Security]: Add destructor to MonoSslStream.
Martin Baulig [Tue, 10 Nov 2015 20:47:31 +0000 (15:47 -0500)]
[Mono.Security]: Add destructor to MonoSslStream.

(cherry picked from commit f158270d867bee65b8980479b84124f9ef1a0f61)

8 years agoMerge pull request #2124 from mhutch/mono-api-info-forwarders
mhutch [Tue, 10 Nov 2015 20:47:19 +0000 (12:47 -0800)]
Merge pull request #2124 from mhutch/mono-api-info-forwarders

[mono-api-info] Allow following type forwarders

8 years ago[runtime] Fixed typo.
João Matos [Tue, 10 Nov 2015 20:36:46 +0000 (12:36 -0800)]
[runtime] Fixed typo.

8 years ago[Mono.Security]: 'Mono.Security.Interface.MonoSslStream' needs to implement IDisposable.
Martin Baulig [Tue, 10 Nov 2015 20:29:11 +0000 (15:29 -0500)]
[Mono.Security]: 'Mono.Security.Interface.MonoSslStream' needs to implement IDisposable.

(cherry picked from commit 4c1760785a60b01f0be41b312c791fae23699ba4)

8 years ago[Mono.Security]: Make MonoTlsProviderFactory.CreateHttpListener() take 'X509Certifica...
Martin Baulig [Fri, 6 Nov 2015 21:40:29 +0000 (16:40 -0500)]
[Mono.Security]: Make MonoTlsProviderFactory.CreateHttpListener() take 'X509Certificate' instead of 'X509Certificate2'.

(cherry picked from commit 3d81daf796c00e3a37bdb20aacbaaa3b5769466d)

8 years ago[runtime] Fix bad assert in mono_class_get_method_from_name_flags.
Rodrigo Kumpera [Tue, 10 Nov 2015 18:55:30 +0000 (13:55 -0500)]
[runtime] Fix bad assert in mono_class_get_method_from_name_flags.

8 years agoMerge pull request #2209 from esdrubal/facades_subdirs
Marcos Henrich [Tue, 10 Nov 2015 17:35:58 +0000 (17:35 +0000)]
Merge pull request #2209 from esdrubal/facades_subdirs

[Facades] Moved subdirs list to subdirs.make

8 years ago[corlib] Disable FullNameGetTypeParseEscapeRoundtrip test on Android.
Alex Rønne Petersen [Tue, 10 Nov 2015 17:33:21 +0000 (18:33 +0100)]
[corlib] Disable FullNameGetTypeParseEscapeRoundtrip test on Android.

This requires the symbol writer which is not available on Android.

8 years ago[acceptance-tests] Output Roslyn and ms-test-suite NUNit xml result to current dir
Alexander Köplinger [Tue, 10 Nov 2015 16:00:01 +0000 (17:00 +0100)]
[acceptance-tests] Output Roslyn and ms-test-suite NUNit xml result to current dir

Roslyn used xunit-style xml by default, we hack the cibuild.sh script to output nunit-style
for now until we get an option upstream.

This allows us to catch those test results in Jenkins.

8 years ago[mcs] Handle using aliases in evaluator. Fixes #32894
Marek Safar [Tue, 10 Nov 2015 15:55:50 +0000 (16:55 +0100)]
[mcs] Handle using aliases in evaluator. Fixes #32894

8 years ago[mcs] Don't store invalid using static expression in evaluator queue. Fixes #35604
Marek Safar [Tue, 10 Nov 2015 15:37:55 +0000 (16:37 +0100)]
[mcs] Don't store invalid using static expression in evaluator queue. Fixes #35604

8 years ago[System.Web] WebColorConverter from reference source
Marek Safar [Tue, 10 Nov 2015 15:36:52 +0000 (16:36 +0100)]
[System.Web] WebColorConverter from reference source

8 years agoMerge pull request #2214 from kumpera/fix_enum_get_get_hashcode
Rodrigo Kumpera [Tue, 10 Nov 2015 14:41:09 +0000 (09:41 -0500)]
Merge pull request #2214 from kumpera/fix_enum_get_get_hashcode

[runtime] Fix Enum.GetHashCode when basetype is short or sbyte.

8 years ago[Mono.Posix] Update incorrect test
Marek Safar [Tue, 10 Nov 2015 14:07:50 +0000 (15:07 +0100)]
[Mono.Posix] Update incorrect test

8 years ago[mcs] inherited interface constraints checks on defined interfaces only. Fixes #35535
Marek Safar [Tue, 10 Nov 2015 13:05:49 +0000 (14:05 +0100)]
[mcs] inherited interface constraints checks on defined interfaces only. Fixes #35535

8 years ago[mcs] Restore local variables state after probing run. Fixes #35674
Marek Safar [Tue, 10 Nov 2015 10:58:29 +0000 (11:58 +0100)]
[mcs] Restore local variables state after probing run. Fixes #35674

8 years agoMerge pull request #2210 from ystr/FromHtml-xxx
Marek Safar [Tue, 10 Nov 2015 10:38:33 +0000 (11:38 +0100)]
Merge pull request #2210 from ystr/FromHtml-xxx

ColorTranslator.FromHtml 3-digit codes support (#35664)

8 years ago[bcl] Add versioning to the TestTasks.dll file name used by the Microsoft.Build.Engin...
Zoltan Varga [Tue, 10 Nov 2015 05:13:59 +0000 (00:13 -0500)]
[bcl] Add versioning to the TestTasks.dll file name used by the Microsoft.Build.Engine tests since it needs to be compiled against the same xbuild version as the rest of the tests.

8 years ago[runtime] Fix Enum.GetHashCode when basetype is short or sbyte.
Rodrigo Kumpera [Tue, 10 Nov 2015 03:42:51 +0000 (22:42 -0500)]
[runtime] Fix Enum.GetHashCode when basetype is short or sbyte.

In addition to fixing the runtime, fix the test suite to correctly detect this problem.

This popped up because, for some reason, those two types have hashcodes that
don't return identity on reference sources.

8 years ago[sgen] We only use workers when starting the concurrent collection
Vlad Brezae [Mon, 2 Nov 2015 01:39:04 +0000 (03:39 +0200)]
[sgen] We only use workers when starting the concurrent collection

8 years ago[sgen] Optimize the finishing of the concurrent collection
Vlad Brezae [Mon, 2 Nov 2015 01:23:01 +0000 (03:23 +0200)]
[sgen] Optimize the finishing of the concurrent collection

If we force the finish of the concurrent collection, instead of waiting for the concurrent mark to finish followed by the finishing mark&sweep, we immediately stop the worker thread, change its object operations and drain the remaining gray stack, also following references to the nursery. This way we avoid the cardtable overhead in cases where there are a lot of references from heap to the nursery.

8 years ago[jit] Refactor loading of runtime constants from IL
Vlad Brezae [Mon, 9 Nov 2015 22:17:54 +0000 (00:17 +0200)]
[jit] Refactor loading of runtime constants from IL

8 years ago[aot] Don't hardcode the nursery size in aot write barriers
Vlad Brezae [Mon, 9 Nov 2015 20:12:28 +0000 (22:12 +0200)]
[aot] Don't hardcode the nursery size in aot write barriers

It can be passed at runtime in the nursery-size option of MONO_GC_PARAMS environment variable.

Fixes #35414

8 years ago[acceptance-tests] Ensure Roslyn is bootstrapping with Mono
Alexander Köplinger [Mon, 9 Nov 2015 17:57:10 +0000 (18:57 +0100)]
[acceptance-tests] Ensure Roslyn is bootstrapping with Mono

It tried to use CoreCLR but that doesn't work on Jenkins since some of the dependencies are missing there.
We actually want to ensure it's always using Mono so we can catch errors on our side, so we need this
hack until we have an option in the script upstream.

8 years agoMerge pull request #2200 from xmcclure/image-audit-oops
Andi McClure [Mon, 9 Nov 2015 17:04:57 +0000 (12:04 -0500)]
Merge pull request #2200 from xmcclure/image-audit-oops

Fix --with-checked-build build on GCC/Linux

8 years agoFix to checked-build reference auditing
Andi McClure [Mon, 9 Nov 2015 16:08:58 +0000 (11:08 -0500)]
Fix to checked-build reference auditing

Remove an array idiom which both broke the GCC build (apparently Clang allows some things with variable-length arrays in "gnu99" mode which GCC does not) and wasn't right anyway (there was a typo which caused a read past end of buffer).

8 years agoColorTranslator.FromHtml 3-digit codes support (#35664)
ES [Mon, 9 Nov 2015 15:53:00 +0000 (18:53 +0300)]
ColorTranslator.FromHtml 3-digit codes support (#35664)

8 years ago[Facades] Moved subdirs list to subdirs.make
Marcos Henrich [Fri, 6 Nov 2015 12:26:25 +0000 (12:26 +0000)]
[Facades] Moved subdirs list to subdirs.make

The list of subdirs is useful for maccore build, it was moved to its own file so it can be included in other builds makefiles.

8 years agoRevert "[bcl] Mark some System tests which depend on a working dns with InetAccess."
Zoltan Varga [Sat, 7 Nov 2015 02:50:04 +0000 (21:50 -0500)]
Revert "[bcl] Mark some System tests which depend on a working dns with InetAccess."

This reverts commit d644cb2ab300e02ba76165a13e7a51225bcb0e35.

Revert this, localhost needs to be resolvable.

8 years ago[bcl] Mark some System tests which depend on a working dns with InetAccess.
Zoltan Varga [Sat, 7 Nov 2015 02:44:20 +0000 (21:44 -0500)]
[bcl] Mark some System tests which depend on a working dns with InetAccess.

8 years ago[acceptance-tests] Fixes for Roslyn integration
Alexander Köplinger [Sat, 7 Nov 2015 02:36:07 +0000 (03:36 +0100)]
[acceptance-tests] Fixes for Roslyn integration

We now use our own archive with the few additional pieces that MS added to their copy of
Mono used by Roslyn CI instead of downloading their archive.

Also bump coreclr to get a fix for the GC test that would fail on Jenkins in.

8 years ago[runtime] Add a MonoAotMode entry for llvmonly.
Zoltan Varga [Sat, 7 Nov 2015 00:47:40 +0000 (19:47 -0500)]
[runtime] Add a MonoAotMode entry for llvmonly.

8 years ago[runtime] Add a dummy definition for mono_debug_personality (), aot compiled managed...
Zoltan Varga [Sat, 7 Nov 2015 00:47:06 +0000 (19:47 -0500)]
[runtime] Add a dummy definition for mono_debug_personality (), aot compiled managed-to-native wrappers refer to it even if its not used.

8 years agoMerge pull request #2102 from AdamBurgess/master
Martin Baulig [Fri, 6 Nov 2015 20:49:10 +0000 (15:49 -0500)]
Merge pull request #2102 from AdamBurgess/master

[System] Fix bug #31209 - HttpConnection infinite loop

8 years agoAvoid setting mono_llvm_only when mono_aot_only is set.
Zoltan Varga [Fri, 6 Nov 2015 19:47:45 +0000 (14:47 -0500)]
Avoid setting mono_llvm_only when mono_aot_only is set.

8 years ago[acceptance-tests] Bump coreclr to pick up a8cbbdddfe9923a7f99edf8870842ad373e66b5b
Alexander Köplinger [Fri, 6 Nov 2015 17:06:21 +0000 (18:06 +0100)]
[acceptance-tests] Bump coreclr to pick up a8cbbdddfe9923a7f99edf8870842ad373e66b5b

I also fixed the coreclr-gcstress target to check for the expected exit code of the testsuite.

8 years ago[llvm] Use LLVMArgNormal for scalars passed by value instead of LLVMArgInIReg/LLVMArg...
Zoltan Varga [Fri, 6 Nov 2015 03:47:07 +0000 (22:47 -0500)]
[llvm] Use LLVMArgNormal for scalars passed by value instead of LLVMArgInIReg/LLVMArgInFPReg which is misleading since arguments can be passed on the stack too.

8 years ago[llvm] Add a 'type' field to LLVMArgInfo, use it to simplify the code a bit.
Zoltan Varga [Fri, 6 Nov 2015 03:39:08 +0000 (22:39 -0500)]
[llvm] Add a 'type' field to LLVMArgInfo, use it to simplify the code a bit.

8 years ago[aot] Reduce the code duplication in the wrapper encoding/decoding code a bit.
Zoltan Varga [Fri, 6 Nov 2015 00:53:42 +0000 (19:53 -0500)]
[aot] Reduce the code duplication in the wrapper encoding/decoding code a bit.

8 years ago[runtime] Make mono_marshal_get_wrapper_info ()/set_wrapper_info () use a WrapperInfo...
Zoltan Varga [Fri, 6 Nov 2015 00:29:30 +0000 (19:29 -0500)]
[runtime] Make mono_marshal_get_wrapper_info ()/set_wrapper_info () use a WrapperInfo pointer instead of a generic one.

8 years ago[runtime] Add WrapperInfos for a few wrappers which were missing it.
Zoltan Varga [Thu, 5 Nov 2015 23:28:35 +0000 (18:28 -0500)]
[runtime] Add WrapperInfos for a few wrappers which were missing it.

8 years ago[runtime] Merge the 'AllocatorWrapperInfo' structure into the common WrapperInfo...
Zoltan Varga [Thu, 5 Nov 2015 22:52:42 +0000 (17:52 -0500)]
[runtime] Merge the 'AllocatorWrapperInfo' structure into the common WrapperInfo structure.

8 years ago[Mono.Security]: Add API to let MonoTlsProvider provider a custom system certificate...
Martin Baulig [Thu, 5 Nov 2015 20:59:40 +0000 (15:59 -0500)]
[Mono.Security]: Add API to let MonoTlsProvider provider a custom system certificate validator.

(cherry picked from commit 4364a6b752e7b6b3dbcfbeefebe8597c4c4fc347)

8 years ago[Mono.Security]: Add ICertificateValidator.InvokeSystemValidator().
Martin Baulig [Thu, 5 Nov 2015 20:52:58 +0000 (15:52 -0500)]
[Mono.Security]: Add ICertificateValidator.InvokeSystemValidator().

(cherry picked from commit 35f9501967d1d73a8f5e1f76d04353f01f464b04)

8 years ago[System]: Cleanup SystemCertificateValidator.Evaluate() by passing it the settings...
Martin Baulig [Thu, 5 Nov 2015 20:40:32 +0000 (15:40 -0500)]
[System]: Cleanup SystemCertificateValidator.Evaluate() by passing it the settings instance.

(cherry picked from commit 6837c35527160304696aa3e046ab7c60322235c8)

8 years ago[Mono.Security]: Add CertificateValidationHelper(MonoTlsProvider,MonoTlsSettings).
Martin Baulig [Thu, 5 Nov 2015 20:19:51 +0000 (15:19 -0500)]
[Mono.Security]: Add CertificateValidationHelper(MonoTlsProvider,MonoTlsSettings).

This is intended to be used by MonoTlsProvider implementations; the ChainValidationHelper
now knows about the provider (unless it's invoked directly from user code).

(cherry picked from commit 2dbf0a0ed101a4890690efd1a81f43496224075d)

8 years ago[System/TLS]: Make 'SystemCertificateValidator' a static class with a single Evaluate...
Martin Baulig [Wed, 4 Nov 2015 22:46:58 +0000 (17:46 -0500)]
[System/TLS]: Make 'SystemCertificateValidator' a static class with a single Evaluate() method.

(cherry picked from commit fbdb69cfffc8e167d86caee2ae0b25522f8d5fe8)

8 years ago[System/TLS]: Use the official API in SslStream rather than hard-coding MonoDefaultTl...
Martin Baulig [Wed, 4 Nov 2015 21:08:27 +0000 (16:08 -0500)]
[System/TLS]: Use the official API in SslStream rather than hard-coding MonoDefaultTlsProvider.

(cherry picked from commit 0bcc31e32680d62c4d4b6a83fec30690a792419b)

8 years ago[runtime] Save the nursery bits used to create wbarrier methods into the aot image...
Zoltan Varga [Thu, 5 Nov 2015 22:26:30 +0000 (17:26 -0500)]
[runtime] Save the nursery bits used to create wbarrier methods into the aot image, and check it at runtime.

8 years agoMerge pull request #2197 from mono/feature-disable-specific-finalizers
Mark Probst [Thu, 5 Nov 2015 16:59:52 +0000 (08:59 -0800)]
Merge pull request #2197 from mono/feature-disable-specific-finalizers

[sgen] Allow disabling finalization of specific classes.

8 years ago[linker] Provide better error message when an error occurs while processing xml descr...
Rolf Bjarne Kvinge [Thu, 5 Nov 2015 11:20:16 +0000 (12:20 +0100)]
[linker] Provide better error message when an error occurs while processing xml descriptions.

With this mtouch will show:

> error MT2001: Could not link assemblies. Reason: Failed to process XML description: /work/maccore/master/maccore/tests/link sdk/extra-linker-defs.xml
> Failed to process XML description: /work/maccore/master/maccore/tests/link sdk/extra-linker-defs.xml
> Failed to resolve assembly: 'MonoTouch, Culture=neutral, PublicKeyToken=null'

instead of:

> error MT2002: Failed to resolve assembly: 'MonoTouch, Culture=neutral, PublicKeyToken=null'

which is a lot less helpful.

8 years agoMerge pull request #2199 from mhutch/pcl46
Marek Safar [Thu, 5 Nov 2015 08:38:00 +0000 (09:38 +0100)]
Merge pull request #2199 from mhutch/pcl46

[xbuild] Add PCL 4.6 targets

8 years ago[acceptance-tests] Bump coreclr to pick up 65b122151adb6b5ef7c27d8e0c268ef479fbe8b4
Alexander Köplinger [Thu, 5 Nov 2015 00:16:08 +0000 (01:16 +0100)]
[acceptance-tests] Bump coreclr to pick up 65b122151adb6b5ef7c27d8e0c268ef479fbe8b4

+11 more passing tests. At this point I think there are no more false positives left and the rest are real bugs.

8 years ago[runtime] Implement native-to-managed marshalling of byref delegate arguments. Fixes...
Zoltan Varga [Wed, 4 Nov 2015 21:27:29 +0000 (16:27 -0500)]
[runtime] Implement native-to-managed marshalling of byref delegate arguments. Fixes #35545.

8 years ago[aot] Fix a crash introduced by 51c4e47f2 when the mscorlib aot image is missing.
Zoltan Varga [Wed, 4 Nov 2015 21:26:45 +0000 (16:26 -0500)]
[aot] Fix a crash introduced by 51c4e47f2 when the mscorlib aot image is missing.

8 years agoCosmetic; remove unused variable.
Martin Baulig [Wed, 4 Nov 2015 20:10:29 +0000 (15:10 -0500)]
Cosmetic; remove unused variable.

(cherry picked from commit a9afeddd80773abfe7400c77e0796acf6e5369c0)

8 years agoCleanup unused usings.
Martin Baulig [Wed, 4 Nov 2015 20:03:33 +0000 (15:03 -0500)]
Cleanup unused usings.

Mono.Net.Security/LegacySslStream.cs is the only file which should
reference the 'Mono.Security.Protocol.Tls' namespace.

(cherry picked from commit 43307ff08684e6889bc24976cb128216e82b7179)

8 years ago[xbuild] Add PCL 4.6 targets
Michael Hutchinson [Wed, 4 Nov 2015 19:08:44 +0000 (14:08 -0500)]
[xbuild] Add PCL 4.6 targets

8 years ago[sgen] Allow disabling finalization of specific classes.
Mark Probst [Tue, 3 Nov 2015 20:47:57 +0000 (12:47 -0800)]
[sgen] Allow disabling finalization of specific classes.

8 years ago[acceptance-tests] Sort source files and add a new MONO define when compiling the...
Alexander Köplinger [Wed, 4 Nov 2015 16:43:10 +0000 (17:43 +0100)]
[acceptance-tests] Sort source files and add a new MONO define when compiling the tests

This allows us to customize test behavior that is different on Mono on purpose.

Sorting the files provides a much nicer output in the test runner.

Bump CoreCLR to include changes from 20789373370fe8f72dde01ad7ffc0816f618197c

8 years ago[Facades]: Remove 'System.IO.Compression'.
Martin Baulig [Wed, 4 Nov 2015 00:14:23 +0000 (19:14 -0500)]
[Facades]: Remove 'System.IO.Compression'.

We do not need a 'System.IO.Compression' facade assembly because we
already have a regular assembly with the same name, which contains all
the classes from here - either as actual implementation or as type-forwarders.

(cherry picked from commit fff780579463094dc194b9a5fb0036f4afa7a3a2)

8 years agoMerge pull request #2196 from alexischr/coop-gc_stackdata-problem
Ludovic Henry [Wed, 4 Nov 2015 16:03:22 +0000 (16:03 +0000)]
Merge pull request #2196 from alexischr/coop-gc_stackdata-problem

[coop] Make sure 'gc_stackdata' is aligned and properly sized.

8 years ago[sdb] Add another fastpath to the invoke code to skip more of the single stepping...
Zoltan Varga [Mon, 2 Nov 2015 23:16:47 +0000 (17:16 -0600)]
[sdb] Add another fastpath to the invoke code to skip more of the single stepping code during invokes.

8 years ago[llvm] Get rid of the 'pindexes' array in LLVMCallInfo, store the parameter index...
Zoltan Varga [Wed, 4 Nov 2015 06:50:49 +0000 (01:50 -0500)]
[llvm] Get rid of the 'pindexes' array in LLVMCallInfo, store the parameter index in LLVMArgInfo.

8 years ago[llvm] Add new llvm argument passing conventions for passing/returning scalar argumen...
Zoltan Varga [Wed, 4 Nov 2015 05:07:02 +0000 (00:07 -0500)]
[llvm] Add new llvm argument passing conventions for passing/returning scalar arguments by ref. Not yet used.

8 years agoMerge pull request #2193 from kumpera/loader-error-cleanup2
Rodrigo Kumpera [Wed, 4 Nov 2015 04:51:09 +0000 (23:51 -0500)]
Merge pull request #2193 from kumpera/loader-error-cleanup2

Get do_mono_metadata_parse_type to use MonoError

8 years ago[monodoc] Fixed several issues with `.ToEcmaCRef` method.
Joel Martinez [Thu, 29 Oct 2015 19:36:29 +0000 (15:36 -0400)]
[monodoc] Fixed several issues with `.ToEcmaCRef` method.
In particular:

- Issues with cref formatting for subtypes.
- Added support for Explicitly implemented members.
- Added support for generic member parameters.

A number of unit tests were added to verify this functionality.

8 years agoMerge pull request #2194 from alexrp/ppdb-status-crash
Zoltan Varga [Tue, 3 Nov 2015 18:53:07 +0000 (12:53 -0600)]
Merge pull request #2194 from alexrp/ppdb-status-crash

[ppdb] Fix a crash caused by mono_ppdb_load_file ().

8 years ago[coop] Make sure 'gc_stackdata' is aligned and properly sized.
Alexis Christoforides [Tue, 3 Nov 2015 14:06:14 +0000 (09:06 -0500)]
[coop] Make sure 'gc_stackdata' is aligned and properly sized.
The size of the gc_stackdata buffer was not a multiple of 8 bytes on 64-bits, so sgen_conservatively_pin_objects_from () would address invalid memory on its last iteration, as it progresses down the buffer by pointer size. The function also expects memory references to be aligned.

This is still not a guarantee that we are aligning memory references properly as two misaligns will still give the right size, but we can catch some of them here. Proper sizing is a smaller issue because we could always pad.

8 years ago[acceptance-tests] Bump coreclr to pick up c1f0812bd0f94f085eb29199ef3b5bd69eab24bb:
Alexander Köplinger [Tue, 3 Nov 2015 15:00:14 +0000 (16:00 +0100)]
[acceptance-tests] Bump coreclr to pick up c1f0812bd0f94f085eb29199ef3b5bd69eab24bb:

8 years agoMerge pull request #2195 from alexrp/tp-ms-io-trace-crash
Ludovic Henry [Tue, 3 Nov 2015 13:54:16 +0000 (13:54 +0000)]
Merge pull request #2195 from alexrp/tp-ms-io-trace-crash

[threadpool-ms-io] Fix some crashy mono_trace () calls.

8 years ago[mini] Add safepoint support for all platforms
Ludovic Henry [Tue, 3 Nov 2015 09:43:02 +0000 (09:43 +0000)]
[mini] Add safepoint support for all platforms

8 years ago[threadpool-ms-io] Fix some crashy mono_trace () calls.
Alex Rønne Petersen [Tue, 3 Nov 2015 13:00:39 +0000 (14:00 +0100)]
[threadpool-ms-io] Fix some crashy mono_trace () calls.

The format strings declared a string argument that wasn't being passed so the
underlying format function crashed when trying to retrieve it.

8 years ago[ppdb] Fix a crash caused by mono_ppdb_load_file ().
Alex Rønne Petersen [Tue, 3 Nov 2015 12:26:39 +0000 (13:26 +0100)]
[ppdb] Fix a crash caused by mono_ppdb_load_file ().

As the `status` variable wasn't being passed along, the image loading code
would crash trying to set it.

8 years agoMerge pull request #2190 from Numpsy/AddADNotFoundException
Marek Safar [Tue, 3 Nov 2015 09:24:10 +0000 (10:24 +0100)]
Merge pull request #2190 from Numpsy/AddADNotFoundException

Add stub implementation of ActiveDirectoryObjectNotFoundException

8 years agoMerge pull request #2192 from kumpera/suspend-crossfire
Ludovic Henry [Tue, 3 Nov 2015 09:11:46 +0000 (09:11 +0000)]
Merge pull request #2192 from kumpera/suspend-crossfire

[suspend] Fix suspend race between mono-threads and sgen suspend when using the posix backend.

8 years ago[mono-error] Add MonoError to do_mono_metadata_parse_type and remove some of the...
Rodrigo Kumpera [Tue, 3 Nov 2015 06:13:03 +0000 (01:13 -0500)]
[mono-error] Add MonoError to do_mono_metadata_parse_type and remove some of the type parsing scaffolds.

8 years ago[mono-error] Add MonoError to do_mono_metadata_parse_generic_class.
Rodrigo Kumpera [Tue, 3 Nov 2015 06:02:43 +0000 (01:02 -0500)]
[mono-error] Add MonoError to do_mono_metadata_parse_generic_class.

8 years ago[mono-error] Change mono_metadata_parse_generic_inst to use MonoError.
Rodrigo Kumpera [Tue, 3 Nov 2015 05:37:09 +0000 (00:37 -0500)]
[mono-error] Change mono_metadata_parse_generic_inst to use MonoError.

8 years ago[mono-error] Introduce MonoError into mono_metadata_parse_generic_param.
Rodrigo Kumpera [Tue, 3 Nov 2015 04:11:14 +0000 (23:11 -0500)]
[mono-error] Introduce MonoError into mono_metadata_parse_generic_param.

8 years ago[acceptance-tests] Make sure the latest version of coreclr-testlibrary.dll is in...
Alexander Köplinger [Tue, 3 Nov 2015 01:00:05 +0000 (02:00 +0100)]
[acceptance-tests] Make sure the latest version of coreclr-testlibrary.dll is in test directory

Also switch to creating symlinks instead of copying the file.

8 years ago[suspend] Fix suspend race between mono-threads and sgen suspend when using the posix...
Rodrigo Kumpera [Tue, 3 Nov 2015 00:19:56 +0000 (19:19 -0500)]
[suspend] Fix suspend race between mono-threads and sgen suspend when using the posix backend.

The problem happens when a thread is left suspended by mono-threads and sgen tries to suspend it.

The signal mask of sigsuspend call in mono-threads didn't include sgen's suspend signal, making
it impossible for sgen to suspend it.

The fix is to include sgen's suspend signal into mono-threads sigsuspend mask. This way sgen
suspend can nest over mono-thread's.

The opposite is not needed as sgen never leaves threads suspended when it finishes and it holds
the suspend lock the whole time, making it impossible for mono-threads to initiate any suspend operation.

8 years ago[sgen] Finish concurrent collection if the heap grows too much
Vlad Brezae [Wed, 28 Oct 2015 20:29:11 +0000 (22:29 +0200)]
[sgen] Finish concurrent collection if the heap grows too much

In order to achieve this, when asked to do a major collection, we finish the concurrent collection immediately, regardless if we are explicitely requested or not to wait_to_finish.

8 years ago[sgen] Create constant for heap growth allowance
Vlad Brezae [Fri, 30 Oct 2015 11:57:34 +0000 (13:57 +0200)]
[sgen] Create constant for heap growth allowance

8 years agoMerge pull request #2081 from BrzVlad/feature-concurrent-work
Vlad Brezae [Mon, 2 Nov 2015 23:05:50 +0000 (01:05 +0200)]
Merge pull request #2081 from BrzVlad/feature-concurrent-work

Concurrent sgen improvements

8 years ago[acceptance-tests] Output test list to file in chunks
Alexander Köplinger [Mon, 2 Nov 2015 21:41:01 +0000 (22:41 +0100)]
[acceptance-tests] Output test list to file in chunks

On Jenkins we get a "make: execvp: /bin/sh: Argument list too long" error while executing the coreclr-runtest-basic target.
Since the shell doesn't like echoing our (very) big list of CoreCLR tests in one go, we need to split it up into chunks of
100 entries to hopefully avoid that.

8 years agoMerge pull request #2191 from LogosBible/mono_amd64_have_tls_get
João Matos [Mon, 2 Nov 2015 21:10:41 +0000 (21:10 +0000)]
Merge pull request #2191 from LogosBible/mono_amd64_have_tls_get

Add support for version of pthread_getspecific when launching from Xc…

8 years agoAdd support for version of pthread_getspecific when launching from Xcode with LLDB...
Martin Potter [Mon, 2 Nov 2015 20:02:01 +0000 (12:02 -0800)]
Add support for version of pthread_getspecific when launching from Xcode with LLDB attached.