change
authorbdemsky <bdemsky>
Tue, 23 Jun 2009 05:39:49 +0000 (05:39 +0000)
committerbdemsky <bdemsky>
Tue, 23 Jun 2009 05:39:49 +0000 (05:39 +0000)
Robust/src/Runtime/STM/stm.c
Robust/src/buildscript

index 1877b8be47a4928552241c8359e79135adfc0a83..6fec140c8683363d2362207e8839fdfa967384a4 100644 (file)
@@ -317,6 +317,9 @@ int transCommit() {
 #endif
       objstrReset();
       t_chashreset();
+#ifdef DELAYCOMP
+      dc_t_chashreset();
+#endif
       return TRANS_ABORT;
     }
     if(finalResponse == TRANS_COMMIT) {
@@ -332,6 +335,9 @@ int transCommit() {
 #endif
       objstrReset();
       t_chashreset();
+#ifdef DELAYCOMP
+      dc_t_chashreset();
+#endif
       return 0;
     }
     /* wait a random amount of time before retrying to commit transaction*/
@@ -352,6 +358,9 @@ int transCommit() {
 #endif
        objstrReset();
        t_chashreset();
+#ifdef DELAYCOMP
+       dc_t_chashreset();
+#endif
        return TRANS_ABORT;
       }
       //randomdelay(softaborted);
index 0b827e40b8689715b11a87a69cc9a744428732f7..03d32594b81949b0ef15a8116f76a909b6134fd2 100755 (executable)
@@ -264,6 +264,10 @@ JAVAOPTS="$JAVAOPTS -optimize"
 elif [[ $1 = '-dcopts' ]]
 then
 JAVAOPTS="$JAVAOPTS -dcopts"
+elif [[ $1 = '-delaycomp' ]]
+then
+JAVAOPTS="$JAVAOPTS -delaycomp"
+EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
 elif [[ $1 = '-mlp' ]]
 then
 JAVAOPTS="$JAVAOPTS -mlp"