mono.git
8 years agoThread.Interrupt is not dependent on MONO_FEATURE_THREAD_SUSPEND_RESUME.
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.

8 years agoMake Thread.Abort and Thread.Suspend/Resume configurable features.
Rolf Bjarne Kvinge [Tue, 6 Oct 2015 11:31:54 +0000 (13:31 +0200)]
Make Thread.Abort and Thread.Suspend/Resume configurable features.

8 years agoAdd legacy mobile api to synchronizationcontext
Marek Safar [Fri, 13 Nov 2015 08:26:01 +0000 (09:26 +0100)]
Add legacy mobile api to synchronizationcontext

8 years agoMono friendly StringUtil
Marek Safar [Tue, 10 Nov 2015 15:32:14 +0000 (16:32 +0100)]
Mono friendly StringUtil

8 years agoTweaks for mobile profile
Marek Safar [Tue, 20 Oct 2015 12:51:52 +0000 (14:51 +0200)]
Tweaks for mobile profile

8 years agoAttempt to fix the build.
Martin Baulig [Mon, 19 Oct 2015 17:49:13 +0000 (13:49 -0400)]
Attempt to fix the build.

8 years agoMake it more obvious that Reference Source is read-only
Immo Landwerth [Sat, 17 Oct 2015 16:18:01 +0000 (09:18 -0700)]
Make it more obvious that Reference Source is read-only

8 years agoFixes com api
Marek Safar [Sat, 17 Oct 2015 07:11:39 +0000 (09:11 +0200)]
Fixes com api

8 years agoDisable optimized comparer for byte, ushort enums
Marek Safar [Fri, 16 Oct 2015 22:09:03 +0000 (00:09 +0200)]
Disable optimized comparer for byte, ushort enums

8 years agoDisable encryption column certificate error message
Marek Safar [Fri, 16 Oct 2015 21:16:38 +0000 (23:16 +0200)]
Disable encryption column certificate error message

8 years agoMore tweaks to mscorlib updates
Marek Safar [Fri, 16 Oct 2015 18:43:00 +0000 (20:43 +0200)]
More tweaks to mscorlib updates

8 years agoMake updated mscorlib mono friendly
Marek Safar [Fri, 16 Oct 2015 15:52:58 +0000 (17:52 +0200)]
Make updated mscorlib mono friendly

8 years agoRevert "[corlib] Fix dispose race condition in CancellationTokenSource"
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.

8 years agoUpdate Reference Sources to .NET Framework 4.6
dotnet-bot [Thu, 15 Oct 2015 21:43:47 +0000 (14:43 -0700)]
Update Reference Sources to .NET Framework 4.6

8 years agoDateTime, DateTimeOffset, bring Unix time APIs from CoreCLR
Miguel de Icaza [Wed, 14 Oct 2015 03:03:43 +0000 (23:03 -0400)]
DateTime, DateTimeOffset, bring Unix time APIs from CoreCLR

8 years agoChange Page_Error resource key to workaround collision with Page_Error method name
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

8 years agoFix dispose race condition in CancellationTokenSource
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.

8 years agoSslState.AsyncResumeHandshake(): Fix resumption of pending handshake.
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)

8 years agoUse optimized qword path in System.String::EqualsHelper () on 64-bit.
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.

8 years agoAdd BE support for Doubles, missed from 41a6d3d6a5432b964b6f8439b6375ffad6f2e6cb
Lennart Sorensen [Tue, 1 Sep 2015 10:28:20 +0000 (11:28 +0100)]
Add BE support for Doubles, missed from 41a6d3d6a5432b964b6f8439b6375ffad6f2e6cb

8 years agoMono friendly WebUtility
Marek Safar [Mon, 31 Aug 2015 11:29:01 +0000 (13:29 +0200)]
Mono friendly WebUtility

8 years agoAdjust to updated StackTrace
Marek Safar [Fri, 21 Aug 2015 19:00:57 +0000 (21:00 +0200)]
Adjust to updated StackTrace

8 years agoRemove unused using
Marek Safar [Wed, 22 Jul 2015 15:17:06 +0000 (17:17 +0200)]
Remove unused using

8 years agoAdd mono tweaks
Marek Safar [Thu, 16 Jul 2015 15:02:38 +0000 (17:02 +0200)]
Add mono tweaks

8 years agoFix and actually use the '_PendingReHandshake' logic in _SslState.cs
Martin Baulig [Mon, 13 Jul 2015 20:26:16 +0000 (22:26 +0200)]
Fix and actually use the '_PendingReHandshake' logic in _SslState.cs

8 years agoAdd more missing strings
Marek Safar [Thu, 9 Jul 2015 15:15:08 +0000 (17:15 +0200)]
Add more missing strings

8 years agoKeep Mono's old default provider type value for RSA. The value isn't used for the...
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.

8 years agoIfdefed out some methods from methodbody.cs and methodbuilder.cs
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.

8 years agoMove ThreadPool from System.Threading.Microsoft to System.Threading
Ludovic Henry [Tue, 21 Apr 2015 10:17:35 +0000 (11:17 +0100)]
Move ThreadPool from System.Threading.Microsoft to System.Threading

8 years agoAdd NET_4_6 defines for .NET 4.6 changes
Dylan Borg [Tue, 30 Jun 2015 06:20:36 +0000 (08:20 +0200)]
Add NET_4_6 defines for .NET 4.6 changes

8 years agoExpose Task.CompletedTask
Dylan Borg [Mon, 29 Jun 2015 17:11:46 +0000 (19:11 +0200)]
Expose Task.CompletedTask

Signed-off-by: Dylan Borg <borgdylan@hotmail.com>
8 years agoExpose Task.FromException/FromCanceled
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>
8 years agoMono-specific implementation to get SecureChannel's connection info.
Martin Baulig [Mon, 8 Jun 2015 14:10:19 +0000 (16:10 +0200)]
Mono-specific implementation to get SecureChannel's connection info.

8 years agoAdd MS ThreadPool disabling flag
Ludovic Henry [Wed, 3 Jun 2015 16:41:34 +0000 (13:41 -0300)]
Add MS ThreadPool disabling flag

8 years agoAdd more legacy mobile apis
Marek Safar [Mon, 1 Jun 2015 13:22:04 +0000 (15:22 +0200)]
Add more legacy mobile apis

8 years agoRsaOaepDecrypt needs to throw, not return null
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

8 years agoDisable more CAS checks
Sebastien Pouliot [Fri, 29 May 2015 14:39:35 +0000 (10:39 -0400)]
Disable more CAS checks

8 years agoFix RSA encryption/decryption with OAEP padding [#30572]
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

8 years agoDebug build fixes.
Marcos Henrich [Fri, 29 May 2015 12:54:50 +0000 (13:54 +0100)]
Debug build fixes.

8 years agoAdd conditional role based security
Marek Safar [Thu, 28 May 2015 13:39:08 +0000 (15:39 +0200)]
Add conditional role based security

8 years agoDisable more CAS
Marek Safar [Wed, 27 May 2015 16:22:00 +0000 (18:22 +0200)]
Disable more CAS

8 years agoClone all levels of captures ExceptionDispatchInfos
Marek Safar [Wed, 27 May 2015 15:12:03 +0000 (17:12 +0200)]
Clone all levels of captures ExceptionDispatchInfos

8 years agoAdd more obsolete and not working types to MonoDroid
Marek Safar [Wed, 27 May 2015 09:30:49 +0000 (11:30 +0200)]
Add more obsolete and not working types to MonoDroid

8 years agoEnable more thread api
Marek Safar [Tue, 26 May 2015 15:40:05 +0000 (17:40 +0200)]
Enable more thread api

8 years agoEnable more thread code
Marek Safar [Tue, 26 May 2015 10:09:19 +0000 (12:09 +0200)]
Enable more thread code

8 years agoSafeHandle mono friendly
Marek Safar [Mon, 25 May 2015 09:17:15 +0000 (11:17 +0200)]
SafeHandle mono friendly

8 years agoAdd more mobile api which fails of crashes but was available in previous versions
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

8 years agoDisable more CAS
Marek Safar [Fri, 22 May 2015 19:03:47 +0000 (21:03 +0200)]
Disable more CAS

8 years agoUpdate missing WaitHelper attributes
Marek Safar [Fri, 22 May 2015 15:26:26 +0000 (17:26 +0200)]
Update missing WaitHelper attributes

8 years agoMake various contexts mono friendly
Marek Safar [Fri, 22 May 2015 14:30:28 +0000 (16:30 +0200)]
Make various contexts mono friendly

8 years agoDisable more CAS
Marek Safar [Wed, 20 May 2015 19:19:23 +0000 (21:19 +0200)]
Disable more CAS

8 years agoFinish CAS removal started in 1ef3d85190bc1beea5505710527c79ff658b94ce
Marek Safar [Wed, 20 May 2015 19:03:22 +0000 (21:03 +0200)]
Finish CAS removal started in 1ef3d85190bc1beea5505710527c79ff658b94ce

8 years agoCorrectly fix 1ef3d85190bc1beea5505710527c79ff658b94ce
Marek Safar [Wed, 20 May 2015 18:54:23 +0000 (20:54 +0200)]
Correctly fix 1ef3d85190bc1beea5505710527c79ff658b94ce

8 years agoFixes regression intoduced in 1ef3d85190bc1beea5505710527c79ff658b94ce
Marek Safar [Wed, 20 May 2015 18:46:28 +0000 (20:46 +0200)]
Fixes regression intoduced in 1ef3d85190bc1beea5505710527c79ff658b94ce

8 years agoMake NotSupportedException partial to allow XI to add an helper method
Sebastien Pouliot [Wed, 20 May 2015 15:28:30 +0000 (11:28 -0400)]
Make NotSupportedException partial to allow XI to add an helper method

8 years agoRemove mono specific handling
Marek Safar [Wed, 20 May 2015 13:53:25 +0000 (15:53 +0200)]
Remove mono specific handling

8 years agoImport System.Threading.ThreadLocal
Ludovic Henry [Wed, 20 May 2015 13:38:32 +0000 (10:38 -0300)]
Import System.Threading.ThreadLocal

8 years agoSome attributes are not translated in SL (this looks like a bug compatibility)
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)

8 years agoRemove CAS usage from XslTransform
Sebastien Pouliot [Wed, 20 May 2015 02:48:00 +0000 (22:48 -0400)]
Remove CAS usage from XslTransform

8 years agoFurther reduce CAS usage in XmlSecureResolver to fix #30205
Sebastien Pouliot [Wed, 20 May 2015 01:50:04 +0000 (21:50 -0400)]
Further reduce CAS usage in XmlSecureResolver to fix #30205

8 years agoMake NotImplementedException partial to allow XI to add an helper method
Sebastien Pouliot [Tue, 19 May 2015 22:12:17 +0000 (18:12 -0400)]
Make NotImplementedException partial to allow XI to add an helper method

8 years agoSprinkle some DISABLE_CAS_USE for System.ServiceModel.* helpers
Sebastien Pouliot [Tue, 19 May 2015 22:11:13 +0000 (18:11 -0400)]
Sprinkle some DISABLE_CAS_USE for System.ServiceModel.* helpers

8 years agoEnable more thread apis
Marek Safar [Tue, 19 May 2015 19:56:07 +0000 (21:56 +0200)]
Enable more thread apis

8 years agoInitial thread integration
Marek Safar [Tue, 19 May 2015 09:42:13 +0000 (11:42 +0200)]
Initial thread integration

8 years agoImport System.Threading.WaitHandle
Ludovic Henry [Sat, 16 May 2015 21:13:48 +0000 (23:13 +0200)]
Import System.Threading.WaitHandle

8 years agoDisable more cas
Marek Safar [Fri, 15 May 2015 18:49:01 +0000 (20:49 +0200)]
Disable more cas

8 years agoImport System.Threading.Timer
Ludovic Henry [Thu, 14 May 2015 15:46:34 +0000 (16:46 +0100)]
Import System.Threading.Timer

8 years agoAdd more mobile api which fails or crashes but was available in previous versions
Marek Safar [Thu, 14 May 2015 12:58:39 +0000 (14:58 +0200)]
Add more mobile api which fails or crashes but was available in previous versions

8 years agoImplement System.Double runtime support
Ludovic Henry [Tue, 12 May 2015 22:06:56 +0000 (23:06 +0100)]
Implement System.Double runtime support

8 years agoDisable RemoteDebugger
Marek Safar [Wed, 13 May 2015 15:33:21 +0000 (17:33 +0200)]
Disable RemoteDebugger

8 years agoAdd broken mono configuration hack
Marek Safar [Wed, 13 May 2015 15:27:08 +0000 (17:27 +0200)]
Add broken mono configuration hack

8 years agoConvert null attribute type to Attribute. Fixes #29916
Marek Safar [Tue, 12 May 2015 14:27:08 +0000 (16:27 +0200)]
Convert null attribute type to Attribute. Fixes #29916

8 years agoAdd more missing strings
Marek Safar [Tue, 12 May 2015 12:37:37 +0000 (14:37 +0200)]
Add more missing strings

8 years agowe cannot check MDAC version via registry, so do not try it.
Atsushi Eno [Tue, 12 May 2015 06:01:44 +0000 (14:01 +0800)]
we cannot check MDAC version via registry, so do not try it.

8 years agoAlways call SSPIWrapper.CheckRemoteCertificate().
Martin Baulig [Mon, 11 May 2015 22:03:12 +0000 (00:03 +0200)]
Always call SSPIWrapper.CheckRemoteCertificate().

8 years agoHold user token as IntPtr only
Marek Safar [Mon, 11 May 2015 14:28:36 +0000 (16:28 +0200)]
Hold user token as IntPtr only

8 years agoMore configuration dependencies
Marek Safar [Mon, 11 May 2015 13:26:14 +0000 (15:26 +0200)]
More configuration dependencies

8 years agoAdd mono dependencies
Marek Safar [Fri, 8 May 2015 09:13:43 +0000 (11:13 +0200)]
Add mono dependencies

8 years agoCorrectly throw on missing encoding
Marek Safar [Fri, 8 May 2015 08:32:28 +0000 (10:32 +0200)]
Correctly throw on missing encoding

8 years agoSqlClient mono friendly bits
Marek Safar [Thu, 7 May 2015 18:52:01 +0000 (20:52 +0200)]
SqlClient mono friendly bits

8 years agoDisable more cas
Marek Safar [Wed, 6 May 2015 14:56:28 +0000 (16:56 +0200)]
Disable more cas

8 years agoMobile fixes
Marek Safar [Wed, 6 May 2015 14:35:25 +0000 (16:35 +0200)]
Mobile fixes

8 years agoPKCS bugfixes
Marek Safar [Mon, 4 May 2015 14:14:14 +0000 (16:14 +0200)]
PKCS bugfixes

8 years agoAdd more mobile api which fails of crashes but was available in previous versions
Marek Safar [Thu, 30 Apr 2015 12:55:18 +0000 (14:55 +0200)]
Add more mobile api which fails of crashes but was available in previous versions

8 years agoMore profile apis tweaks
Marek Safar [Wed, 29 Apr 2015 19:52:39 +0000 (21:52 +0200)]
More profile apis tweaks

8 years agoAdding reference source for System.Configuration
dotnet-bot [Wed, 29 Apr 2015 17:37:19 +0000 (10:37 -0700)]
Adding reference source for System.Configuration

8 years agoFix what looks like a buggy RsaOaepDecrypt
Marek Safar [Wed, 29 Apr 2015 11:39:14 +0000 (13:39 +0200)]
Fix what looks like a buggy RsaOaepDecrypt

8 years agoMore cryptography mono tweaks
Marek Safar [Tue, 28 Apr 2015 17:02:22 +0000 (19:02 +0200)]
More cryptography mono tweaks

8 years agoMono tweaks to cryptography
Marek Safar [Tue, 28 Apr 2015 11:35:23 +0000 (13:35 +0200)]
Mono tweaks to cryptography

8 years agoMake WindowsRuntime enum value alway available
Marek Safar [Tue, 28 Apr 2015 07:18:47 +0000 (09:18 +0200)]
Make WindowsRuntime enum value alway available

8 years agoRemove more com stuff from Attribute
Marek Safar [Mon, 27 Apr 2015 18:28:15 +0000 (20:28 +0200)]
Remove more com stuff from Attribute

8 years agomore uses of NO_DYNAMIC_CODEGEN condition were needed.
Atsushi Eno [Fri, 24 Apr 2015 06:04:12 +0000 (15:04 +0900)]
more uses of NO_DYNAMIC_CODEGEN condition were needed.

8 years agoRestore Mono compatibility with UnmanagedType enum
Sebastien Pouliot [Wed, 22 Apr 2015 01:20:50 +0000 (21:20 -0400)]
Restore Mono compatibility with UnmanagedType enum

Some values, like CustomMarshaler, are used by XI unit tests.

8 years agoMono friendly cryptography bits
Marek Safar [Mon, 20 Apr 2015 14:29:49 +0000 (16:29 +0200)]
Mono friendly cryptography bits

8 years agoMobile teaks to security attributes
Marek Safar [Fri, 17 Apr 2015 14:54:56 +0000 (16:54 +0200)]
Mobile teaks to security attributes

8 years agoUpdate public api
Marek Safar [Fri, 17 Apr 2015 14:05:38 +0000 (16:05 +0200)]
Update public api

8 years agoMono friendly versioning
Marek Safar [Fri, 17 Apr 2015 13:37:08 +0000 (15:37 +0200)]
Mono friendly versioning

8 years agoMono friendly safe handles
Marek Safar [Fri, 17 Apr 2015 12:28:21 +0000 (14:28 +0200)]
Mono friendly safe handles

8 years agoFix wrong define 7612b6f65cec4620d83117511d38e47a5456b468
Marek Safar [Fri, 17 Apr 2015 09:01:31 +0000 (11:01 +0200)]
Fix wrong define 7612b6f65cec4620d83117511d38e47a5456b468

8 years agoTweaks for mobile profiles
Marek Safar [Fri, 17 Apr 2015 08:32:55 +0000 (10:32 +0200)]
Tweaks for mobile profiles