changes to build script to increase java heap memory
[IRC.git] / Robust / src / Benchmarks / Prefetch / Em3d / java / Barrier.java
index 47f40620484b1151da3f455b6d203ccbad968870..590b3a66519ec13da8cff618fd9cbfd4cee61545 100644 (file)
@@ -21,15 +21,13 @@ public class Barrier {
     int tmp;
     boolean retry=true;
 
-    if (b.numthreads == 1) 
-      return;
-
     do {
       if (!b.cleared) {
         b.entercount++;
         tmp = b.entercount;
         if (tmp==b.numthreads) {
-          b.cleared=true;
+          if(b.numthreads > 1)
+            b.cleared=true;
           b.entercount--;
           return;
         }