From 51ca85fe7543739afbc67270f5f05d9447d7714d Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 23 Jun 2009 05:39:49 +0000 Subject: [PATCH] change --- Robust/src/Runtime/STM/stm.c | 9 +++++++++ Robust/src/buildscript | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/Robust/src/Runtime/STM/stm.c b/Robust/src/Runtime/STM/stm.c index 1877b8be..6fec140c 100644 --- a/Robust/src/Runtime/STM/stm.c +++ b/Robust/src/Runtime/STM/stm.c @@ -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); diff --git a/Robust/src/buildscript b/Robust/src/buildscript index 0b827e40..03d32594 100755 --- a/Robust/src/buildscript +++ b/Robust/src/buildscript @@ -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" -- 2.34.1