Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/tests/GC/API/GC/GetTotalAllocatedBytes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Comment thread
VSadov marked this conversation as resolved.
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)
Expand Down Expand Up @@ -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()
{
Expand Down
Loading