mono.git
8 years agoMerge pull request #2236 from akoeplinger/add-dataflow
Alexander Köplinger [Tue, 17 Nov 2015 21:03:53 +0000 (22:03 +0100)]
Merge pull request #2236 from akoeplinger/add-dataflow

[System.Threading.Tasks.Dataflow] Replace implementation with CoreFx version

8 years ago[Mono.Security]: Add 'X509Chain' to ICertificateValidator.InvokeSystemValidator and...
Martin Baulig [Tue, 17 Nov 2015 18:43:16 +0000 (13:43 -0500)]
[Mono.Security]: Add 'X509Chain' to ICertificateValidator.InvokeSystemValidator and MonoTlsProvider.InvokeSystemCertificateValidator.

On OS X and Mobile, the X509Chain will be initialized with all the
certificates from the X509CertificateCollection, but not actually
built.

ServicePointManager.ServerCertificateValidationCallback can use the 'chain' argument
to get all the certificates from the server.

(cherry picked from commit 73e37f0ecfd403780d60f36d8b0d68f27987b256)

8 years ago[Mono.Security]: The default value of 'MonoTlsSettings.UseServicePointManagerCallback...
Martin Baulig [Tue, 17 Nov 2015 02:39:39 +0000 (21:39 -0500)]
[Mono.Security]: The default value of 'MonoTlsSettings.UseServicePointManagerCallback' is supposed to be true.

This fixes a regression where ServicePointManager.ServerCertificateValidationCallback
was not called when using WebClient.

(cherry picked from commit 5022db1956cd7dbde46928473800ff5b5e6b651e)

8 years ago[threads] Fix build
Ludovic Henry [Tue, 17 Nov 2015 15:48:26 +0000 (15:48 +0000)]
[threads] Fix build

8 years ago[mcs] Set null operator barrier between invocation instance and its arguments. Fixes...
Marek Safar [Tue, 17 Nov 2015 15:12:56 +0000 (16:12 +0100)]
[mcs] Set null operator barrier between invocation instance and its arguments. Fixes #33341

8 years ago[arm] Avoid an assertion check in aot mode.
Zoltan Varga [Tue, 17 Nov 2015 15:02:23 +0000 (10:02 -0500)]
[arm] Avoid an assertion check in aot mode.

8 years ago[runtime] Add MONO_ABI_SIZEOF macros similar to the existing MONO_ABI_ALIGNOF macros...
Zoltan Varga [Tue, 17 Nov 2015 15:01:33 +0000 (10:01 -0500)]
[runtime] Add MONO_ABI_SIZEOF macros similar to the existing MONO_ABI_ALIGNOF macros, use these to compute sizes of types.

8 years agoMerge pull request #2240 from UCIS/patch-6
Alexis Christoforides [Tue, 17 Nov 2015 14:57:39 +0000 (09:57 -0500)]
Merge pull request #2240 from UCIS/patch-6

Fixed hang in SslStreamBase when stream is closed during I/O

8 years ago[sgen] Remove sgen specific suspend code
Ludovic Henry [Wed, 21 Oct 2015 15:49:00 +0000 (16:49 +0100)]
[sgen] Remove sgen specific suspend code

8 years agoMerge pull request #2241 from f00f/patch-1
Alex Rønne Petersen [Tue, 17 Nov 2015 14:29:05 +0000 (15:29 +0100)]
Merge pull request #2241 from f00f/patch-1

Fixed typo

8 years agoFixed typo
f00f [Tue, 17 Nov 2015 14:28:19 +0000 (15:28 +0100)]
Fixed typo

8 years agoFixed hang in SslStreamBase when stream is closed during I/O
Ivo Smits [Tue, 17 Nov 2015 13:54:02 +0000 (14:54 +0100)]
Fixed hang in SslStreamBase when stream is closed during I/O

If the SslStreamBase is disposed while a read or write operation is in progress, the asynchronous I/O state is never marked as completed, resulting in synchronous Read/Write calls never returning. To fix this, the internal I/O callbacks should mark the asynchronous operations as completed, possibly with an error, even if the SslStreamBase is disposed.

8 years agoMerge pull request #2201 from rolfbjarne/linker-better-xml-processing-errors
Rolf Bjarne Kvinge [Tue, 17 Nov 2015 13:47:18 +0000 (08:47 -0500)]
Merge pull request #2201 from rolfbjarne/linker-better-xml-processing-errors

[linker] Provide better error message when an error occurs while processing xml descriptions

8 years agoRemove link to Wrench from README.md
Alexander Köplinger [Tue, 17 Nov 2015 13:14:55 +0000 (14:14 +0100)]
Remove link to Wrench from README.md

We're retiring public Wrench and replacing it with Jenkins, see http://lists.ximian.com/pipermail/mono-devel-list/2015-November/043399.html

8 years agoAdd monotouch_*_runtime profiles for watchOS and tvOS.
Rolf Bjarne Kvinge [Mon, 16 Nov 2015 18:30:55 +0000 (19:30 +0100)]
Add monotouch_*_runtime profiles for watchOS and tvOS.

8 years agoIgnore extensions-config.h
Rolf Bjarne Kvinge [Tue, 17 Nov 2015 10:12:05 +0000 (11:12 +0100)]
Ignore extensions-config.h

8 years agoFix the build.
Zoltan Varga [Tue, 17 Nov 2015 08:30:49 +0000 (03:30 -0500)]
Fix the build.

8 years agoRemove obsolete interpreter embedding sample.
Zoltan Varga [Tue, 17 Nov 2015 07:16:25 +0000 (02:16 -0500)]
Remove obsolete interpreter embedding sample.

8 years ago[jit] Remove unused mono_aot_register_globals () function.
Zoltan Varga [Tue, 17 Nov 2015 07:12:29 +0000 (02:12 -0500)]
[jit] Remove unused mono_aot_register_globals () function.

8 years ago[jit] Remove the nursery_bits from the wrapper info for the gc write barrier methods...
Zoltan Varga [Tue, 17 Nov 2015 06:54:17 +0000 (01:54 -0500)]
[jit] Remove the nursery_bits from the wrapper info for the gc write barrier methods, its no longer needed after 85581ff1bb8b28141ec1823b7371efa5a14551bb.

8 years ago[jit] Add a header file for aot-compiler.c.
Zoltan Varga [Tue, 17 Nov 2015 06:51:13 +0000 (01:51 -0500)]
[jit] Add a header file for aot-compiler.c.

8 years ago[jit] Fix the check for emulation of div instructions in 9f253965d02d20b7fd39549ba07b...
Zoltan Varga [Tue, 17 Nov 2015 03:27:35 +0000 (22:27 -0500)]
[jit] Fix the check for emulation of div instructions in 9f253965d02d20b7fd39549ba07b35e76a69e48f.

8 years agoMerge pull request #2239 from xmcclure/interbals2
Alexander Köplinger [Mon, 16 Nov 2015 23:25:26 +0000 (00:25 +0100)]
Merge pull request #2239 from xmcclure/interbals2

Minor: Style cleanup on internal headers (continued)

8 years agoMinor: Style cleanup on internal headers (continued)
Andi McClure [Mon, 16 Nov 2015 23:17:21 +0000 (18:17 -0500)]
Minor: Style cleanup on internal headers (continued)

Previous patch missed some build files.

8 years agoMerge pull request #2238 from xmcclure/interbals
Andi McClure [Mon, 16 Nov 2015 22:26:17 +0000 (17:26 -0500)]
Merge pull request #2238 from xmcclure/interbals

Minor: Style cleanup on internal headers

8 years agoMinor: Style cleanup on internal headers
Andi McClure [Mon, 16 Nov 2015 20:45:01 +0000 (15:45 -0500)]
Minor: Style cleanup on internal headers

For consistency, rename any -internal.h files to -internals.h. Also remove INTERBALS

8 years agoUpdated Assert.Equals to Assert.AreEqual
Marcos Henrich [Mon, 16 Nov 2015 17:21:45 +0000 (17:21 +0000)]
Updated Assert.Equals to Assert.AreEqual

8 years ago[System.Threading.Tasks.Dataflow] Replace implementation with CoreFx version
Alexander Köplinger [Mon, 16 Nov 2015 15:23:09 +0000 (16:23 +0100)]
[System.Threading.Tasks.Dataflow] Replace implementation with CoreFx version

We were seeing some random test failures on Jenkins with our Dataflow implementation.
Replacing it with Microsoft's CoreFx version fixed those and makes us more compatible.

While we'd ideally not ship this assembly at all with Mono (it doesn't ship with .NET),
we shipped it in the past and as such people might rely on it so we can't remove it.

The CoreFx commit this version was taken is 905a1940bcda0afdca2f14ceb2b0161ebc4d1d02.

8 years ago[arm] HACK: Disable fast TLS on ARM for now.
Alex Rønne Petersen [Wed, 4 Nov 2015 19:16:28 +0000 (20:16 +0100)]
[arm] HACK: Disable fast TLS on ARM for now.

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

8 years ago[linker] Always preserve Interlocked.Exchange<T> ().
Alex Rønne Petersen [Mon, 16 Nov 2015 15:07:18 +0000 (16:07 +0100)]
[linker] Always preserve Interlocked.Exchange<T> ().

The runtime expects to be able to find the generic variant of this method in
the metadata even when code is calling the `object` overload.

8 years agoMerge pull request #2228 from lambdageek/dev/sgen-timeouts
Alexander Köplinger [Mon, 16 Nov 2015 14:10:24 +0000 (15:10 +0100)]
Merge pull request #2228 from lambdageek/dev/sgen-timeouts

[test] sgen tests should behave nicer on slower machines.

8 years ago[arm] Simplify the seq point code used for soft breakpoints.
Zoltan Varga [Mon, 16 Nov 2015 03:55:00 +0000 (03:55 +0000)]
[arm] Simplify the seq point code used for soft breakpoints.

8 years ago[Windows.Forms] add a warning to the Carbon driver when running on 64 bits
Miguel de Icaza [Sun, 15 Nov 2015 15:12:03 +0000 (10:12 -0500)]
[Windows.Forms] add a warning to the Carbon driver when running on 64 bits

8 years ago[runtime] Fix Thread.CurrentThread in non-root appdomains by setting the tls slot...
Zoltan Varga [Sun, 15 Nov 2015 13:32:36 +0000 (08:32 -0500)]
[runtime] Fix Thread.CurrentThread in non-root appdomains by setting the tls slot in start_wrapper, otherwise Thread.CurrentThread would create a new Thread object so there would be two. Fixes #35828.

8 years agoFix a warning.
Zoltan Varga [Sun, 15 Nov 2015 08:00:30 +0000 (03:00 -0500)]
Fix a warning.

8 years ago[amd64] Make amd64_patch non-inline, it seems to be miscompiled by older clang versio...
Zoltan Varga [Sun, 15 Nov 2015 00:04:40 +0000 (19:04 -0500)]
[amd64] Make amd64_patch non-inline, it seems to be miscompiled by older clang versions (5.1).

8 years ago[amd64] Enable div checks when running on tvos.
Zoltan Varga [Sat, 14 Nov 2015 03:42:23 +0000 (22:42 -0500)]
[amd64] Enable div checks when running on tvos.

8 years ago[jit] Emit div checks if MONO_ARCH_NEED_DIV_CHECK is enabled even when div instructio...
Zoltan Varga [Sat, 14 Nov 2015 00:48:50 +0000 (19:48 -0500)]
[jit] Emit div checks if MONO_ARCH_NEED_DIV_CHECK is enabled even when div instructions are not emulated.

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[test] Give the sgen tests more time.
Aleksey Kliger [Fri, 13 Nov 2015 20:29:53 +0000 (15:29 -0500)]
[test] Give the sgen tests more time.

8 years ago[test] Make sgen tests behave nicer on slower machines.
Aleksey Kliger [Thu, 12 Nov 2015 22:15:01 +0000 (17:15 -0500)]
[test] Make sgen tests behave nicer on slower machines.

  * TestDriver.cs Add `TestTimeout` utility to check how much time CI
       allocated for the test.
  * sgen-domain-unload-2.cs print warning if running low on time.
  * sgen-new-threads-dont-join-stw.cs print progress dots and a warning
       when running low on time.

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