sync ports with The Matrix

This commit is contained in:
purplerain 2023-08-24 08:00:32 +00:00
parent cbcec355c0
commit c376d85ea0
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
190 changed files with 4781 additions and 1132 deletions

View file

@ -0,0 +1,18 @@
add MONO_FORCE_COMPAT env var for backwards compatibility with some
routines that were abandoned with the update to mono 5 upstream
This may lead to undefined behavior and should only be used in
well-defined cases.
Index: external/corert/src/System.Private.CoreLib/shared/System/Collections/Generic/ArraySortHelper.cs
--- external/corert/src/System.Private.CoreLib/shared/System/Collections/Generic/ArraySortHelper.cs.orig
+++ external/corert/src/System.Private.CoreLib/shared/System/Collections/Generic/ArraySortHelper.cs
@@ -41,7 +41,8 @@ namespace System.Collections.Generic
internal static void ThrowOrIgnoreBadComparer(object comparer)
{
- throw new ArgumentException(SR.Format(SR.Arg_BogusIComparer, comparer));
+ if (Environment.GetEnvironmentVariable ("MONO_FORCE_COMPAT") == null)
+ throw new ArgumentException(SR.Format(SR.Arg_BogusIComparer, comparer));
}
}