Debug statements
authorbdemsky <bdemsky>
Fri, 25 Apr 2008 21:51:35 +0000 (21:51 +0000)
committerbdemsky <bdemsky>
Fri, 25 Apr 2008 21:51:35 +0000 (21:51 +0000)
Robust/src/Benchmarks/Prefetch/Moldyn/dsm/DebugBarrier.java

index f9455db8085fe132368ea7ff17a2792e5f304e94..eaddc75c35f62d193d0e3abd090f69c1d01abb9a 100644 (file)
@@ -32,13 +32,14 @@ public class Barrier {
             if(b.numthreads > 1)
               b.cleared=true;
             b.entercount--;
+           System.printString("Exiting Barrier #1\n");
             return;
           }
           retry=false;
         }
       }
     } while(retry);
-
+    System.printString("Waiting for last thread to enter\n");
     while(true) {
       atomic {
         if (b.cleared) {
@@ -46,6 +47,7 @@ public class Barrier {
           int count = b.entercount;
           if (count==0)
             b.cleared=false;
+         System.printString("Exiting Barrier #2\n");
           return;
         }
       }