mono.git
8 years agoMerge pull request #2233 from madewokherd/ucontextgregs
João Matos [Fri, 13 Nov 2015 23:02:14 +0000 (15:02 -0800)]
Merge pull request #2233 from madewokherd/ucontextgregs

Do not define UCONTEXT_GREGS on win64.

8 years agoRevert "[jit] Emit div checks if MONO_ARCH_NEED_DIV_CHECK is enabled even when div...
Zoltan Varga [Fri, 13 Nov 2015 21:26:44 +0000 (16:26 -0500)]
Revert "[jit] Emit div checks if MONO_ARCH_NEED_DIV_CHECK is enabled even when div instructions are not emulated. Enable div checks for tvos."

This reverts commit 276824dd28c4b16ccd9ce9b71ec22cb59cce9bc3.

Revert this as it breaks on some android devices:
https://bugzilla.xamarin.com/show_bug.cgi?id=35844

8 years ago[Mono.Security]: Cleanup the internal `Mono.Security.Interface.ICertificateValidator'.
Martin Baulig [Fri, 13 Nov 2015 18:04:03 +0000 (13:04 -0500)]
[Mono.Security]: Cleanup the internal `Mono.Security.Interface.ICertificateValidator'.

* ICertificateValidator.SelectClientCertificate(): return bool, indicating whether
  a certificate has been selected or the caller should use its default
  implementation (if it has any).

* ICertificateValidator.ValidateCertificate(): new common function for both client
  and server certificates; replaces ValidateChain() and ValidateClientCertificate().

* MonoTlsProvider.InvokeSystemCertificateValidator(): return bool, indicating whether
  the certificate has been validator or the default system validator should be used.

(cherry picked from commit 42421eec1e91cbcb09a531a77df296da9e5e9f5d)

8 years agoDo not define UCONTEXT_GREGS on win64.
Vincent Povirk [Fri, 13 Nov 2015 18:58:36 +0000 (12:58 -0600)]
Do not define UCONTEXT_GREGS on win64.

8 years agoMerge pull request #2227 from esdrubal/tzparse
Rodrigo Kumpera [Fri, 13 Nov 2015 18:12:15 +0000 (13:12 -0500)]
Merge pull request #2227 from esdrubal/tzparse

[corlib] Fixes TimeZoneInfo.ParseTZBuffer abbrevs.

8 years ago[corlib] Fixes TimeZoneInfo.ParseTZBuffer abbrevs.
Marcos Henrich [Thu, 12 Nov 2015 19:00:43 +0000 (19:00 +0000)]
[corlib] Fixes TimeZoneInfo.ParseTZBuffer abbrevs.

Context: https://bugzilla.xamarin.com/show_bug.cgi?id=31432

In a few android devices TimeZoneInfo.ParseTZBuffer was failing ito
parse Europe/Moscow with:
at System.ThrowHelper.ThrowKeyNotFoundException ()
at System.Collections.Generic.Dictionary`2[System.Int32,System.String].get_Item (Int32 key)mscorlib/system/collections/generic/dictionary.cs:176
at System.TimeZoneInfo.ParseTimesTypes (System.Byte[] buffer, Int32 index, Int32 count, System.Collections.Generic.Dictionary`2 abbreviations) [0x0002f] in mcs/class/corlib/System/TimeZoneInfo.cs:1293
at System.TimeZoneInfo.ParseTZBuffer (System.String id, System.Byte[] buffer, Int32 length)

It was failing while getting the third index [3] from] from abbrevs.

abbrevs added values were the following:
[0, MMT]
[1, MT]
[2, T]
[4, MST]
[5, ST]
[6, T]
[8, MDST]
[9, DST]
[10, ST]
[11, T]
[13, S]
[15, M]
[17, MSK]
[18, SK]
[19, K]
[21, EET]
[22, ET]
[23, T]
[25, MSD]
[26, SD]
[27, D]
[29, EEST]
[30, EST]
[31, ST]
[32, T]

Index 3 was not added because its values is an empty string, as indexes
with empty values are used in this case we are now adding them to the
abbrevs dictionary.

Fixes #31432

8 years ago[corlib] Tests TimeZoneInfo.ParseTZBuffer
Marcos Henrich [Thu, 12 Nov 2015 18:45:03 +0000 (18:45 +0000)]
[corlib] Tests TimeZoneInfo.ParseTZBuffer

Context: https://bugzilla.xamarin.com/show_bug.cgi?id=31432

Tests TimeZoneInfo.ParseTZBuffer with Europe/Moscow data that thrown
at System.ThrowHelper.ThrowKeyNotFoundException ()
at System.Collections.Generic.Dictionary`2[System.Int32,System.String].get_Item (Int32 key)mscorlib/system/collections/generic/dictionary.cs:176
at System.TimeZoneInfo.ParseTimesTypes (System.Byte[] buffer, Int32 index, Int32 count, System.Collections.Generic.Dictionary`2 abbreviations) [0x0002f] in mcs/class/corlib/System/TimeZoneInfo.cs:1293
at System.TimeZoneInfo.ParseTZBuffer (System.String id, System.Byte[] buffer, Int32 length)

8 years ago[IO] Dump handle when we run out of them
Ludovic Henry [Thu, 12 Nov 2015 18:49:43 +0000 (18:49 +0000)]
[IO] Dump handle when we run out of them

When running out of handle, it's hard to know exactly why. Dumping them
will help troubleshoot handle leaks.

8 years agoBump referencesource
Marek Safar [Fri, 13 Nov 2015 08:26:52 +0000 (09:26 +0100)]
Bump referencesource

8 years ago[jit] Emit div checks if MONO_ARCH_NEED_DIV_CHECK is enabled even when div instructio...
Zoltan Varga [Fri, 13 Nov 2015 03:58:28 +0000 (22:58 -0500)]
[jit] Emit div checks if MONO_ARCH_NEED_DIV_CHECK is enabled even when div instructions are not emulated. Enable div checks for tvos.

8 years ago[arm] Fix register assignments during hfa parameter passing. Fixes pinvoke_ppdcd...
Zoltan Varga [Thu, 12 Nov 2015 23:48:59 +0000 (18:48 -0500)]
[arm] Fix register assignments during hfa parameter passing. Fixes pinvoke_ppdcd.exe.

8 years ago[runtime] Rename iltests.il.in back to iltests.il, architecture specific tests should...
Zoltan Varga [Thu, 12 Nov 2015 23:07:09 +0000 (18:07 -0500)]
[runtime] Rename iltests.il.in back to iltests.il, architecture specific tests should be handled using Category attributes.

8 years ago[linker] do not try to iterate thru null array
Radek Doulik [Thu, 12 Nov 2015 19:57:40 +0000 (20:57 +0100)]
[linker] do not try to iterate thru null array

 - fixes the case when custom attribute instance constructor contains
   null value for System.Type[] array

8 years agoRewrite the test case from commit b503b87a to not use Assert.IsInstanceOfType().
Martin Baulig [Thu, 12 Nov 2015 19:15:39 +0000 (14:15 -0500)]
Rewrite the test case from commit b503b87a to not use Assert.IsInstanceOfType().

8 years ago[Facades] Fix tarball (for real this time)
Alexander Köplinger [Thu, 12 Nov 2015 16:04:18 +0000 (17:04 +0100)]
[Facades] Fix tarball (for real this time)

Turns out EXTRA_DISTFILES only works with library.make or executable.make,
so we need to just use DISTFILES here...

8 years ago[Facades] Fix tarball by adding a new file to EXTRA_DISTFILES
Alexander Köplinger [Thu, 12 Nov 2015 14:04:58 +0000 (15:04 +0100)]
[Facades] Fix tarball by adding a new file to EXTRA_DISTFILES

It was added in 29a02f2b12cee2e7b0cf10b3ae863b7ea1c588c6.

8 years agoMerge pull request #2224 from Gankov/patch-1
Alexander Köplinger [Thu, 12 Nov 2015 13:21:39 +0000 (14:21 +0100)]
Merge pull request #2224 from Gankov/patch-1

Fixed a typo in Mono.Cairo

8 years agoFixed a typo
Gankov Andrey [Thu, 12 Nov 2015 09:55:26 +0000 (12:55 +0300)]
Fixed a typo

8 years ago[runtime] Remove a bogus assertion.
Zoltan Varga [Thu, 12 Nov 2015 02:30:07 +0000 (21:30 -0500)]
[runtime] Remove a bogus assertion.

8 years ago[jit] Use emit_runtime_constant () in a few more places to reduce code duplication...
Zoltan Varga [Thu, 12 Nov 2015 01:57:10 +0000 (20:57 -0500)]
[jit] Use emit_runtime_constant () in a few more places to reduce code duplication between the JIT and mono_resolve_patch_target ().

8 years agoMerge pull request #2213 from kumpera/widen-unsafe-mov
Rodrigo Kumpera [Thu, 12 Nov 2015 00:15:39 +0000 (19:15 -0500)]
Merge pull request #2213 from kumpera/widen-unsafe-mov

[jit] Add support for widening of Array.UnsafeMov intrisic. Fixes #35310

8 years ago[jit] Allow reference types with Array.UnsafeMov. Document restrictrions in Array.cs.
Rodrigo Kumpera [Wed, 11 Nov 2015 23:30:00 +0000 (18:30 -0500)]
[jit] Allow reference types with Array.UnsafeMov. Document restrictrions in Array.cs.

8 years ago[runtime] Use 'this_obj' instead of 'this' in a few more places.
Zoltan Varga [Wed, 11 Nov 2015 22:59:13 +0000 (17:59 -0500)]
[runtime] Use 'this_obj' instead of 'this' in a few more places.

8 years ago[jit] Add support for widening of Array.UnsafeMov intrisic. Fixes #35310
Rodrigo Kumpera [Wed, 11 Nov 2015 22:38:56 +0000 (17:38 -0500)]
[jit] Add support for widening of Array.UnsafeMov intrisic. Fixes #35310

This enables usage of JitHelper.UnsafeEnumCast<> with enums smaller than int.

This changes enables the intrinsic for int conversions of same reg class.

8 years ago[acceptance-tests] Split compiling/cleaning test sources and bump coreclr
Alexander Köplinger [Wed, 11 Nov 2015 22:04:27 +0000 (23:04 +0100)]
[acceptance-tests] Split compiling/cleaning test sources and bump coreclr

The coreclr-compile-tests would throw a shell error "Argument list too long" on OSX due
to the huge amount of tests passed to make in one go. The same happened for make clean.

We now compile and clean the three sets of coreclr test sources separately to avoid this.

Additionally, bump the coreclr reference and include a new test that was added upstream.

8 years agoMerge pull request #2222 from akoeplinger/dataflow-test-reliability
Rodrigo Kumpera [Wed, 11 Nov 2015 21:48:35 +0000 (16:48 -0500)]
Merge pull request #2222 from akoeplinger/dataflow-test-reliability

[Dataflow] Fix flaky tests by bumping timeouts

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