We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae7e004 commit 80c4cbfCopy full SHA for 80c4cbf
src/tests/GC/API/GC/GetTotalAllocatedBytes.cs
@@ -110,7 +110,7 @@ public static void TestAnotherThread()
110
object lck = new object();
111
112
tsk = Task.Run(() => {
113
- while (running)
+ for (int i = 0; i < 1000; i++)
114
{
115
Thread thd = new Thread(() => {
116
lock (lck)
@@ -121,11 +121,14 @@ public static void TestAnotherThread()
121
122
thd.Start();
123
thd.Join();
124
+
125
+ if (!running)
126
+ break;
127
}
128
});
129
130
Counts previous = default(Counts);
- for (int i = 0; i < 1000; ++i)
131
+ for (int i = 0; i < 100; ++i)
132
133
134
0 commit comments