fix bug w/ recycling + RCR
authorbdemsky <bdemsky>
Mon, 25 Oct 2010 23:26:36 +0000 (23:26 +0000)
committerbdemsky <bdemsky>
Mon, 25 Oct 2010 23:26:36 +0000 (23:26 +0000)
Robust/src/IR/Flat/RuntimeConflictResolver.java
Robust/src/Runtime/oooJava/rcr_runtime.c
Robust/src/Tests/rcr/makefile

index d4ee9dcf25553474459b52bfdea13d27b4e20c4d..5ddb55d017633dddf1003bf9d9bbbe81d9388117 100644 (file)
@@ -413,7 +413,7 @@ public class RuntimeConflictResolver {
       }
     }
 
-    cFile.println("    default:\n    printf(\"Invalid SESE ID was passed in.\\n\");\n    break;");
+    cFile.println("    default:\n    printf(\"Invalid SESE ID was passed in: %d.\\n\",record->classID);\n    break;");
     
     cFile.println("  }");
     cFile.println("}");
@@ -641,10 +641,6 @@ public class RuntimeConflictResolver {
     cFile.println(methodName + " {");
     headerFile.println(methodName + ";");
     
-    if(cSideDebug) {
-      cFile.println("printf(\"The traverser ran for " + methodName + "\\n\");");
-    }
-    
     if(cases.size() == 0) {
       cFile.println(" return;");
     } else {
index cdcd1b14769e0425719d41c618683bb0cffbfbb5..52b42a5668b62ce2d1fe6ea69e129b894d5504e9 100644 (file)
@@ -12,6 +12,9 @@ void * workerTR(void *x) {
       tmp=(SESEcommon *) dequeueTR(queue);
       if (tmp!=NULL) {
        tasktraverse(tmp);
+#ifndef OOO_DISABLE_TASKMEMPOOL
+       RELEASE_REFERENCE_TO(tmp);
+#endif
       } else {
        sched_yield();
       }
index 118488c19e8b55961cd1f4086794a60d3fe3e2fa..7e478f53587ff414f969eac0bcaa15cb66cf0036 100644 (file)
@@ -6,7 +6,7 @@ SOURCE_FILES=test.java
 BUILDSCRIPT=../../buildscript
 
 USEOOO= -rcr -ooojava 8 2 -ooodebug
-BSFLAGS= -64bit -mainclass test -optimize -debug
+BSFLAGS= -64bit -mainclass test -nooptimize -debug
 DISJOINT= -disjoint -disjoint-k 1 -enable-assertions #-disjoint-desire-determinism