< prev index next >

src/share/vm/utilities/semaphore.cpp

Print this page

        

@@ -57,11 +57,11 @@
   uint total = value;
 
   for (uint i = value; i + increments <= max; i += increments) {
     sem.signal(increments);
 
-    total = i;
+    total += increments;
   }
 
   for (uint i = 0; i < total; i++) {
     sem.wait();
   }
< prev index next >