Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / sgen-weakref-stress.cs
index 89623777dab02c4167f632a4aa6ea74275ccae66..9a43b7200d652ffc20bd96eb3756b4a9e40f9b3f 100644 (file)
@@ -18,11 +18,11 @@ public class Tests
                        });
                }
 
-               for (int i = 0; i < 10; ++i)
+               for (int i = 0; i < thread_count; ++i)
                        t [i].Start ();
 
                while (true) {
-                       if (fcount == 10)
+                       if (fcount == thread_count)
                                break;
                        GC.Collect ();
                        Thread.Sleep (1);