diff --git a/src/tests/GC/API/GC/GetTotalAllocatedBytes.cs b/src/tests/GC/API/GC/GetTotalAllocatedBytes.cs index c6369889ca80b1..13ef35dbf46742 100644 --- a/src/tests/GC/API/GC/GetTotalAllocatedBytes.cs +++ b/src/tests/GC/API/GC/GetTotalAllocatedBytes.cs @@ -110,8 +110,11 @@ public static void TestAnotherThread() { object lck = new object(); + // 1000 quickly created threads can be too many for a 32-bit environment, so reduce on 32-bit. + int threadCount = IntPtr.Size == 4 ? 100 : 1000; + tsk = Task.Run(() => { - for (int i = 0; i < 1000; i++) + for (int i = 0; i < threadCount; i++) { Thread thd = new Thread(() => { lock (lck) @@ -177,7 +180,6 @@ public static void TestLohSohConcurrently() } [ActiveIssue("needs triage", TestRuntimes.Mono)] - [ActiveIssue("https://github.com/dotnet/runtime/issues/121482", typeof(TestLibrary.Utilities), nameof(TestLibrary.Utilities.IsArm))] [Fact] public static void TestEntryPoint() {