From f4d08e3f94189e982bfe1bb90f87fcacbe914db3 Mon Sep 17 00:00:00 2001 From: Ivan Diaz Sanchez Date: Thu, 10 Aug 2023 09:14:51 -0700 Subject: [PATCH] Restored Crossgen2's optimizations in CoreCLR builds and reenabled the poisoning tests since the problem has been addressed. (#90278) --- src/coreclr/crossgen-corelib.proj | 1 + .../System.Private.CoreLib/src/System/Text/Ascii.Utility.cs | 3 +-- src/tests/JIT/Directed/Directed_3.csproj | 2 +- src/tests/issues.targets | 3 --- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/coreclr/crossgen-corelib.proj b/src/coreclr/crossgen-corelib.proj index e0bef5d3b31..2dc62b8151a 100644 --- a/src/coreclr/crossgen-corelib.proj +++ b/src/coreclr/crossgen-corelib.proj @@ -127,6 +127,7 @@ $(CrossGenDllCmd) --targetarch:$(TargetArchitecture) $(CrossGenDllCmd) --targetos:$(TargetOS) $(CrossGenDllCmd) -m:$(MergedMibcPath) --embed-pgo-data + $(CrossGenDllCmd) -O $(CrossGenDllCmd) --verify-type-and-field-layout $(CrossGenDllCmd) @(CoreLib) diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs b/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs index b6b88790ea5..ab55607c944 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs @@ -2146,8 +2146,7 @@ private static unsafe nuint NarrowUtf16ToAscii_Intrinsified_256(char* pUtf16Buff // jumps as much as possible in the optimistic case of "all ASCII". If we see non-ASCII // data, we jump out of the hot paths to targets at the end of the method. - // Commented out to workaround https://github.com/dotnet/runtime/issues/90265 - // Debug.Assert(Vector256.IsHardwareAccelerated, "Vector256 is required."); + Debug.Assert(Vector256.IsHardwareAccelerated, "Vector256 is required."); Debug.Assert(BitConverter.IsLittleEndian, "This implementation assumes little-endian."); Debug.Assert(elementCount >= 2 * Vector256.Size); diff --git a/src/tests/JIT/Directed/Directed_3.csproj b/src/tests/JIT/Directed/Directed_3.csproj index 45060cbcc5c..78ec52b6675 100644 --- a/src/tests/JIT/Directed/Directed_3.csproj +++ b/src/tests/JIT/Directed/Directed_3.csproj @@ -14,4 +14,4 @@ - \ No newline at end of file + diff --git a/src/tests/issues.targets b/src/tests/issues.targets index 031f224f233..3bd33834ee5 100644 --- a/src/tests/issues.targets +++ b/src/tests/issues.targets @@ -666,9 +666,6 @@ https://github.com/dotnet/runtime/issues/43461 - - https://github.com/dotnet/runtime/issues/56148 - -- GitLab