Andi McClure [Wed, 13 Apr 2016 22:32:44 +0000 (18:32 -0400)]
Adapt System.Exception to be usable by Mono
Marek Safar [Tue, 12 Apr 2016 14:06:53 +0000 (16:06 +0200)]
SymbolType in reflection only profiles
Marek Safar [Tue, 12 Apr 2016 12:45:04 +0000 (14:45 +0200)]
Mono friendly SymbolType
Marek Safar [Tue, 12 Apr 2016 09:28:22 +0000 (11:28 +0200)]
Better error message for missing codeset assembly
Marek Safar [Tue, 5 Apr 2016 13:53:44 +0000 (15:53 +0200)]
Fixes hardcoded Windows path in Serialization compiler
Marek Safar [Tue, 29 Mar 2016 11:13:43 +0000 (13:13 +0200)]
More DISABLE_CAS_USE tweaks
Marek Safar [Thu, 17 Mar 2016 09:21:54 +0000 (10:21 +0100)]
Add CSC_SDK_PATH_DISABLED workaround
Marek Safar [Wed, 16 Mar 2016 09:42:58 +0000 (10:42 +0100)]
Mono friendly RuntimeEnvironment
Marek Safar [Tue, 15 Mar 2016 12:51:18 +0000 (13:51 +0100)]
Add feature option to build without System.Runtime.Serialization
Marek Safar [Fri, 4 Mar 2016 12:38:25 +0000 (13:38 +0100)]
Replace string resource key names with local constants
Ludovic Henry [Mon, 15 Feb 2016 19:26:33 +0000 (19:26 +0000)]
Import System.Threading.WaitHandle
Andi McClure [Wed, 17 Feb 2016 15:38:50 +0000 (10:38 -0500)]
Remove Marshal.GetHRForLastWin32Error call from Diagnostics.Process
GetHRForLastWin32Error breaks the build on AOT, and even on non-AOT is unimplemented.
Ludovic Henry [Tue, 16 Feb 2016 14:26:53 +0000 (14:26 +0000)]
Marek Safar [Mon, 15 Feb 2016 19:22:22 +0000 (20:22 +0100)]
Marek Safar [Mon, 15 Feb 2016 17:13:37 +0000 (18:13 +0100)]
Mono friendly MethodInfo
Ludovic Henry [Mon, 8 Feb 2016 18:42:45 +0000 (18:42 +0000)]
Import System.Diagnostics.Process
Marek Safar [Tue, 9 Feb 2016 10:33:31 +0000 (11:33 +0100)]
Disable AppContextDefaults
Timotheus Pokorra [Mon, 8 Feb 2016 20:55:36 +0000 (21:55 +0100)]
fixing display of asmx help page (#37137)
if MONO_BROKEN_CONFIGURATION_DLL is defined, make sure that actualPath always gets set
Marcos Henrich [Sat, 30 Jan 2016 11:55:17 +0000 (11:55 +0000)]
Unix paths fix
DiscoveryClientProtocol.GetRelativePath was harcoded to use '\\'.
Fixes #36116
Alexander Kyte [Wed, 20 Jan 2016 17:19:49 +0000 (12:19 -0500)]
Only use patched AesManaged on MONOTOUCH
Marek Safar [Fri, 15 Jan 2016 14:18:06 +0000 (15:18 +0100)]
Fixes a race in CancellationTokenSource with no logic change. Fixes #32768
It's not easy to trigger but following repro works fairly reliably
using System;
using System.Threading;
class MainClass
{
public static void Main (string [] args)
{
var r = new Random ();
for (int i = 0, total =
10000000; i < total; ++i) {
if (i % 50 == 0)
Console.WriteLine ("{0}/{1}", i, total);
var c1 = new CancellationTokenSource ();
var wh = c1.Token.WaitHandle;
GC.Collect ();
c1.CancelAfter (r.Next(5));
c1.Dispose ();
}
}
}
It crashes like
Unhandled Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Threading.ManualResetEvent'.
at System.Threading.WaitHandle.CheckDisposed () <0x1f95be0 + 0x0005c> in <filename unknown>:0
at System.Threading.EventWaitHandle.Set () <0x1f8d320 + 0x0007d> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle:Set ()
at System.Threading.CancellationTokenSource.NotifyCancellation (Boolean throwOnFirstException) <0x1d92c70 + 0x00084> in <filename unknown>:0
at System.Threading.CancellationTokenSource.Cancel (Boolean throwOnFirstException) <0x1d92330 + 0x00030> in <filename unknown>:0
at System.Threading.CancellationTokenSource.Cancel () <0x1d92300 + 0x00025> in <filename unknown>:0
at System.Threading.CancellationTokenSource.TimerCallbackLogic (System.Object obj) <0x1d925c0 + 0x0005d> in <filename unknown>:0
Marek Safar [Thu, 14 Jan 2016 13:37:27 +0000 (14:37 +0100)]
Compute InvariantCaseInsensitiveHashCode without any culture data initialization. Fixes #37583
Rolf Bjarne Kvinge [Fri, 8 Jan 2016 18:49:06 +0000 (19:49 +0100)]
Add support for intercepting threadpool work.
This is used to Xamarin.iOS to wrap threadpool work in an NSAutoreleasePool.
Rolf Bjarne Kvinge [Wed, 16 Dec 2015 18:16:31 +0000 (19:16 +0100)]
Add feature define for multiple appdomains.
Marek Safar [Mon, 4 Jan 2016 13:53:39 +0000 (14:53 +0100)]
Remove WindowsBase type forwarders from mobile profile
Alexander Köplinger [Thu, 24 Dec 2015 12:21:36 +0000 (13:21 +0100)]
Revert "[System] Mono friendly QEncodedStream"
This reverts commit
5a7abfc46054c02fabde6398b7514a0fcff06cb7.
The code should be added to Mono's Uri instead.
Alexander Köplinger [Thu, 24 Dec 2015 02:24:12 +0000 (03:24 +0100)]
Add a few MONO comments for System.Net.Sockets
Alexander Köplinger [Thu, 24 Dec 2015 00:25:25 +0000 (01:25 +0100)]
Mono friendly QEncodedStream
Mono's Uri class doesn't have IsAsciiLetter, so we need to copy the MS implementation into QEncodedStream.
Marek Safar [Mon, 14 Dec 2015 12:27:08 +0000 (13:27 +0100)]
Fix invariant text info hashcode builder. Fixes #36786
Marek Safar [Mon, 7 Dec 2015 08:17:13 +0000 (09:17 +0100)]
Cannot use regex fallback as its implementations is incompatible
Marek Safar [Fri, 4 Dec 2015 22:24:49 +0000 (17:24 -0500)]
Disable regex fallback on Mono
dotnet-bot [Fri, 4 Dec 2015 19:31:10 +0000 (11:31 -0800)]
Update Reference Sources to .NET Framework 4.6.1
Marek Safar [Thu, 3 Dec 2015 19:11:54 +0000 (14:11 -0500)]
Mono exception to SocketException
Zoltan Varga [Thu, 3 Dec 2015 02:59:22 +0000 (21:59 -0500)]
Remove a workaround for a JIT limitation which doesn't exist any more.
Sebastien Pouliot [Fri, 27 Nov 2015 21:23:28 +0000 (16:23 -0500)]
Disable use of Win32 specific p/invokes when built for the mobile profile
Sebastien Pouliot [Thu, 26 Nov 2015 16:21:47 +0000 (11:21 -0500)]
Do not include a win32-p/invoke call (RegCloseKey) for the mobile profile
Sebastien Pouliot [Wed, 25 Nov 2015 22:08:21 +0000 (17:08 -0500)]
Use DISABLE_CAS_USE to remove the use of several *Permission calls (forcibly removed by the linker on XI) [#36255]
Tarek Mahmoud Sayed [Wed, 12 Aug 2015 19:50:14 +0000 (12:50 -0700)]
Port the DateTime parser fix from the Desktop
This change is fixing the DateTime parser in cases of date/time strings for cultures which has the date and time separators are same. This happen with Norway, Serbia and Finland cultures
[tfs-changeset:
1513801]
Miguel de Icaza [Thu, 19 Nov 2015 14:09:57 +0000 (09:09 -0500)]
Bring from CoreFX the
f813aa2e9a5d927d121d6bdca467e10e9a6e0c9b fix for Asin and Acos
Rolf Bjarne Kvinge [Wed, 18 Nov 2015 13:11:48 +0000 (14:11 +0100)]
Thread.Interrupt is not dependent on MONO_FEATURE_THREAD_SUSPEND_RESUME.
Rolf Bjarne Kvinge [Tue, 6 Oct 2015 11:31:54 +0000 (13:31 +0200)]
Make Thread.Abort and Thread.Suspend/Resume configurable features.
Marek Safar [Fri, 13 Nov 2015 08:26:01 +0000 (09:26 +0100)]
Add legacy mobile api to synchronizationcontext
Marek Safar [Tue, 10 Nov 2015 15:32:14 +0000 (16:32 +0100)]
Mono friendly StringUtil
Marek Safar [Tue, 20 Oct 2015 12:51:52 +0000 (14:51 +0200)]
Tweaks for mobile profile
Martin Baulig [Mon, 19 Oct 2015 17:49:13 +0000 (13:49 -0400)]
Attempt to fix the build.
Immo Landwerth [Sat, 17 Oct 2015 16:18:01 +0000 (09:18 -0700)]
Make it more obvious that Reference Source is read-only
Marek Safar [Sat, 17 Oct 2015 07:11:39 +0000 (09:11 +0200)]
Fixes com api
Marek Safar [Fri, 16 Oct 2015 22:09:03 +0000 (00:09 +0200)]
Disable optimized comparer for byte, ushort enums
Marek Safar [Fri, 16 Oct 2015 21:16:38 +0000 (23:16 +0200)]
Disable encryption column certificate error message
Marek Safar [Fri, 16 Oct 2015 18:43:00 +0000 (20:43 +0200)]
More tweaks to mscorlib updates
Marek Safar [Fri, 16 Oct 2015 15:52:58 +0000 (17:52 +0200)]
Make updated mscorlib mono friendly
Marek Safar [Fri, 16 Oct 2015 15:37:44 +0000 (17:37 +0200)]
Revert "[corlib] Fix dispose race condition in CancellationTokenSource"
This reverts commit
5f5ac0a87b65941f5377a1ba06614d22281b015f.
dotnet-bot [Thu, 15 Oct 2015 21:43:47 +0000 (14:43 -0700)]
Update Reference Sources to .NET Framework 4.6
Miguel de Icaza [Wed, 14 Oct 2015 03:03:43 +0000 (23:03 -0400)]
DateTime, DateTimeOffset, bring Unix time APIs from CoreCLR
Marek Safar [Mon, 5 Oct 2015 14:00:18 +0000 (16:00 +0200)]
Change Page_Error resource key to workaround collision with Page_Error method name
Ludovic Henry [Tue, 29 Sep 2015 11:46:31 +0000 (12:46 +0100)]
Fix dispose race condition in CancellationTokenSource
The race condition would manifest in the following code:
```
for (int i = 0, total = 100000; i < total; ++i) {
if (i % 50 == 0)
Console.WriteLine ("{0}/{1}", i, total);
var c1 = new CancellationTokenSource ();
var wh = c1.Token.WaitHandle;
c1.CancelAfter (1);
Thread.Sleep (1);
c1.Dispose ();
}
```
And we would observe the following exception:
```
Unhandled Exception: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Threading.ManualResetEvent'.
at System.Threading.WaitHandle.CheckDisposed () [0x00016] in /Users/builder/data/lanes/1196/
33e00ac6/source/mono/mcs/class/corlib/System.Threading/WaitHandle.cs:426
at System.Threading.EventWaitHandle.Set () [0x0000c] in /Users/builder/data/lanes/1196/
33e00ac6/source/mono/mcs/class/corlib/System.Threading/EventWaitHandle.cs:205
at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle:Set ()
at System.Threading.CancellationTokenSource.NotifyCancellation (Boolean throwOnFirstException) [0x00051] in /Users/builder/data/lanes/1196/
33e00ac6/source/mono/external/referencesource/mscorlib/system/threading/CancellationTokenSource.cs:723
at System.Threading.CancellationTokenSource.Cancel (Boolean throwOnFirstException) [0x00006] in /Users/builder/data/lanes/1196/
33e00ac6/source/mono/external/referencesource/mscorlib/system/threading/CancellationTokenSource.cs:409
at System.Threading.CancellationTokenSource.Cancel () <0x7d75ada8 + 0x00017> in <filename unknown>:0
at System.Threading.CancellationTokenSource.TimerCallbackLogic (System.Object obj) [0x00012] in /Users/builder/data/lanes/1196/
33e00ac6/source/mono/external/referencesource/mscorlib/system/threading/CancellationTokenSource.cs:538
```
This would be a race condition between the TimerCallbackLogic call to Cancel and the call to Dispose on another thread. You could trigger it more reliably by putting a Thread.Sleep at CancellationTokenSource.cs:599.
Martin Baulig [Wed, 15 Jul 2015 04:06:01 +0000 (06:06 +0200)]
SslState.AsyncResumeHandshake(): Fix resumption of pending handshake.
(cherry picked from commit
8f3cae56e1586ff9709ca78e1b3000da5860d132)
(cherry picked from commit
a56d585fa65efcb7ef734dcd40248a4872e424a5)
Alex Rønne Petersen [Tue, 1 Sep 2015 19:39:58 +0000 (21:39 +0200)]
Use optimized qword path in System.String::EqualsHelper () on 64-bit.
Lennart Sorensen [Tue, 1 Sep 2015 10:28:20 +0000 (11:28 +0100)]
Add BE support for Doubles, missed from
41a6d3d6a5432b964b6f8439b6375ffad6f2e6cb
Marek Safar [Mon, 31 Aug 2015 11:29:01 +0000 (13:29 +0200)]
Mono friendly WebUtility
Marek Safar [Fri, 21 Aug 2015 19:00:57 +0000 (21:00 +0200)]
Adjust to updated StackTrace
Marek Safar [Wed, 22 Jul 2015 15:17:06 +0000 (17:17 +0200)]
Remove unused using
Marek Safar [Thu, 16 Jul 2015 15:02:38 +0000 (17:02 +0200)]
Add mono tweaks
Martin Baulig [Mon, 13 Jul 2015 20:26:16 +0000 (22:26 +0200)]
Fix and actually use the '_PendingReHandshake' logic in _SslState.cs
Marek Safar [Thu, 9 Jul 2015 15:15:08 +0000 (17:15 +0200)]
Add more missing strings
Alexis Christoforides [Thu, 2 Jul 2015 13:51:14 +0000 (16:51 +0300)]
Keep Mono's old default provider type value for RSA. The value isn't used for the managed crypto code and is still validfor CryptoAPI, but if it changes Mono can't find keypairs made with earlier versions.
Marcos Henrich [Wed, 1 Jul 2015 20:19:36 +0000 (21:19 +0100)]
Ifdefed out some methods from methodbody.cs and methodbuilder.cs
Mono now uses ExceptionHandlingClauseOptions from methodbody.cs and ExceptionHandler from methobuilder.cs.
Remaining types from thoses files were ignored with ifdef.
Ludovic Henry [Tue, 21 Apr 2015 10:17:35 +0000 (11:17 +0100)]
Move ThreadPool from System.Threading.Microsoft to System.Threading
Dylan Borg [Tue, 30 Jun 2015 06:20:36 +0000 (08:20 +0200)]
Add NET_4_6 defines for .NET 4.6 changes
Dylan Borg [Mon, 29 Jun 2015 17:11:46 +0000 (19:11 +0200)]
Expose Task.CompletedTask
Signed-off-by: Dylan Borg <borgdylan@hotmail.com>
Dylan Borg [Mon, 29 Jun 2015 17:02:37 +0000 (19:02 +0200)]
Expose Task.FromException/FromCanceled
Signed-off-by: Dylan Borg <borgdylan@hotmail.com>
Martin Baulig [Mon, 8 Jun 2015 14:10:19 +0000 (16:10 +0200)]
Mono-specific implementation to get SecureChannel's connection info.
Ludovic Henry [Wed, 3 Jun 2015 16:41:34 +0000 (13:41 -0300)]
Add MS ThreadPool disabling flag
Marek Safar [Mon, 1 Jun 2015 13:22:04 +0000 (15:22 +0200)]
Add more legacy mobile apis
Sebastien Pouliot [Fri, 29 May 2015 20:01:09 +0000 (16:01 -0400)]
RsaOaepDecrypt needs to throw, not return null
Mono's implementation of RSAOAEPKeyExchangeDeformatter did the throwing
but we're now using MS implementation of it - so it make sense to move
the throw (it's needed) in the utils.cs file
Sebastien Pouliot [Fri, 29 May 2015 14:39:35 +0000 (10:39 -0400)]
Disable more CAS checks
Sebastien Pouliot [Fri, 29 May 2015 13:55:04 +0000 (09:55 -0400)]
Fix RSA encryption/decryption with OAEP padding [#30572]
MS implementation is incorrect and the .NET framework never hits this code
path as it's RSA implementation calls CryptoAPI (bypassing those managed
classes).
mscorlib/system/security/cryptography/pkcs1maskgenerationmethod.cs
-> use Mono MGF1 implementation
mscorlib/system/security/cryptography/utils.cs
-> remove duplicated code from Mono's PKCS1
-> fix RsaOaepEncrypt and RsaOaepDecrypt to call Mono code
Marcos Henrich [Fri, 29 May 2015 12:54:50 +0000 (13:54 +0100)]
Debug build fixes.
Marek Safar [Thu, 28 May 2015 13:39:08 +0000 (15:39 +0200)]
Add conditional role based security
Marek Safar [Wed, 27 May 2015 16:22:00 +0000 (18:22 +0200)]
Disable more CAS
Marek Safar [Wed, 27 May 2015 15:12:03 +0000 (17:12 +0200)]
Clone all levels of captures ExceptionDispatchInfos
Marek Safar [Wed, 27 May 2015 09:30:49 +0000 (11:30 +0200)]
Add more obsolete and not working types to MonoDroid
Marek Safar [Tue, 26 May 2015 15:40:05 +0000 (17:40 +0200)]
Enable more thread api
Marek Safar [Tue, 26 May 2015 10:09:19 +0000 (12:09 +0200)]
Enable more thread code
Marek Safar [Mon, 25 May 2015 09:17:15 +0000 (11:17 +0200)]
SafeHandle mono friendly
Marek Safar [Mon, 25 May 2015 08:32:27 +0000 (10:32 +0200)]
Add more mobile api which fails of crashes but was available in previous versions
Marek Safar [Fri, 22 May 2015 19:03:47 +0000 (21:03 +0200)]
Disable more CAS
Marek Safar [Fri, 22 May 2015 15:26:26 +0000 (17:26 +0200)]
Update missing WaitHelper attributes
Marek Safar [Fri, 22 May 2015 14:30:28 +0000 (16:30 +0200)]
Make various contexts mono friendly
Marek Safar [Wed, 20 May 2015 19:19:23 +0000 (21:19 +0200)]
Disable more CAS
Marek Safar [Wed, 20 May 2015 19:03:22 +0000 (21:03 +0200)]
Marek Safar [Wed, 20 May 2015 18:54:23 +0000 (20:54 +0200)]
Marek Safar [Wed, 20 May 2015 18:46:28 +0000 (20:46 +0200)]
Sebastien Pouliot [Wed, 20 May 2015 15:28:30 +0000 (11:28 -0400)]
Make NotSupportedException partial to allow XI to add an helper method
Marek Safar [Wed, 20 May 2015 13:53:25 +0000 (15:53 +0200)]
Remove mono specific handling
Ludovic Henry [Wed, 20 May 2015 13:38:32 +0000 (10:38 -0300)]
Import System.Threading.ThreadLocal
Marek Safar [Wed, 20 May 2015 10:54:35 +0000 (12:54 +0200)]
Some attributes are not translated in SL (this looks like a bug compatibility)
Sebastien Pouliot [Wed, 20 May 2015 02:48:00 +0000 (22:48 -0400)]
Remove CAS usage from XslTransform
Sebastien Pouliot [Wed, 20 May 2015 01:50:04 +0000 (21:50 -0400)]
Further reduce CAS usage in XmlSecureResolver to fix #30205
Sebastien Pouliot [Tue, 19 May 2015 22:12:17 +0000 (18:12 -0400)]
Make NotImplementedException partial to allow XI to add an helper method