From 004250c1180ce8b736006396ae9b590b5e38b205 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Oct 2025 23:18:35 +0000 Subject: [PATCH 1/3] Initial plan From 28de709624bfb305e6be0d1abb1439fb4795f8bf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Oct 2025 23:46:18 +0000 Subject: [PATCH 2/3] Mark memory-intensive tests for OuterLoop and 64-bit only Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> --- .../tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs index 0707327d171d4e..09e3880125693d 100644 --- a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs +++ b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs @@ -8067,7 +8067,8 @@ from inputValue in others from anotherValue in anothers select new object[] { options, inputValue, anotherValue }; - [Fact] + [ConditionalFact(typeof(Environment), nameof(Environment.Is64BitProcess))] + [OuterLoop] public static void WritePropertyWithExtremelyLongName_ThrowsArgumentException() { var output = new ArrayBufferWriter(); @@ -8080,7 +8081,8 @@ public static void WritePropertyWithExtremelyLongName_ThrowsArgumentException() Assert.Throws(() => writer.WritePropertyName(longName.AsSpan())); } - [Fact] + [ConditionalFact(typeof(Environment), nameof(Environment.Is64BitProcess))] + [OuterLoop] public static void WriteValueWithExtremelyLongValue_ThrowsArgumentException() { var output = new ArrayBufferWriter(); From 33204dcbfadd7e0f0e843da8ce17909450cb9de8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Oct 2025 01:09:25 +0000 Subject: [PATCH 3/3] Use PlatformDetection.Is64BitProcess instead of Environment.Is64BitProcess Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> --- .../tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs index 09e3880125693d..8d716b3ba089c0 100644 --- a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs +++ b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Utf8JsonWriterTests.cs @@ -8067,7 +8067,7 @@ from inputValue in others from anotherValue in anothers select new object[] { options, inputValue, anotherValue }; - [ConditionalFact(typeof(Environment), nameof(Environment.Is64BitProcess))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.Is64BitProcess))] [OuterLoop] public static void WritePropertyWithExtremelyLongName_ThrowsArgumentException() { @@ -8081,7 +8081,7 @@ public static void WritePropertyWithExtremelyLongName_ThrowsArgumentException() Assert.Throws(() => writer.WritePropertyName(longName.AsSpan())); } - [ConditionalFact(typeof(Environment), nameof(Environment.Is64BitProcess))] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.Is64BitProcess))] [OuterLoop] public static void WriteValueWithExtremelyLongValue_ThrowsArgumentException() {