From d3503bce82a264f17ec79f582d69375cd9a1b3d2 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Fri, 9 Oct 2009 10:33:57 +0000 Subject: [PATCH] move the STM implementation out of the DSTM implementation --- Robust/src/buildscript | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Robust/src/buildscript b/Robust/src/buildscript index 621874ee..7b2213f8 100755 --- a/Robust/src/buildscript +++ b/Robust/src/buildscript @@ -74,13 +74,14 @@ SANDBOX=false; ABORTREADERS=false; ROBUSTROOT=~/research/Robust/src DSMRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface/ +STMRUNTIME=$ROBUSTROOT/Runtime/STM/ DSMRECOVERYRUNTIME=$ROBUSTROOT/Runtime/DSTM/interface_recovery/ REPAIRROOT=~/research/Repair/RepairCompiler/ CURDIR=`pwd` DSMFLAG=false DSMRECOVERY=false FASTMEMCPY=false -SINGLETM=false +STM=false NOJAVA=false CHECKFLAG=false RECOVERFLAG=false @@ -192,7 +193,7 @@ elif [[ $1 = '-singleTM' ]] then JAVAOPTS="$JAVAOPTS -singleTM" EXTRAOPTIONS="$EXTRAOPTIONS -DSTM" -SINGLETM=true +STM=true elif [[ $1 = '-readset' ]] then JAVAOPTS="$JAVAOPTS -readset" @@ -428,7 +429,7 @@ if $DSMFLAG then #dsm stuff JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaDSM" -elif $SINGLETM +elif $STM then JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/JavaSTM" elif $THREADFLAG @@ -688,15 +689,15 @@ EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -DDSTM -I$DSMRUNTIME" FILES="$FILES $DSMRUNTIME/trans.c $DSMRUNTIME/mcpileq.c $DSMRUNTIME/objstr.c $DSMRUNTIME/dstm.c $DSMRUNTIME/mlookup.c $DSMRUNTIME/clookup.c $DSMRUNTIME/llookup.c $DSMRUNTIME/threadnotify.c $DSMRUNTIME/dstmserver.c $DSMRUNTIME/plookup.c $DSMRUNTIME/ip.c $DSMRUNTIME/queue.c $DSMRUNTIME/prelookup.c $DSMRUNTIME/machinepile.c $ROBUSTROOT/Runtime/localobjects.c $ROBUSTROOT/Runtime/thread.c $DSMRUNTIME/sockpool.c $DSMRUNTIME/addUdpEnhance.c $DSMRUNTIME/signal.c $DSMRUNTIME/gCollect.c $DSMRUNTIME/addPrefetchEnhance.c $DSMRUNTIME/dsmlock.c $DSMRUNTIME/prefetch.c" fi fi -if $SINGLETM +if $STM then -EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$DSMRUNTIME" -FILES="$FILES $DSMRUNTIME/stmlock.c $DSMRUNTIME/singleTMCommit.c $DSMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c" +EXTRAOPTIONS="$EXTRAOPTIONS -lpthread -DCOMPILER -I$STMRUNTIME" +FILES="$FILES $STMRUNTIME/stmlock.c $STMRUNTIME/singleTMCommit.c $STMRUNTIME/stmlookup.c $ROBUSTROOT/Runtime/thread.c" fi if $SANDBOX then -FILES="$FILES $DSMRUNTIME/sandbox.c" +FILES="$FILES $STMRUNTIME/sandbox.c" fi if $ABORTREADERS @@ -772,7 +773,6 @@ gcc $INCLUDES $EXTRAOPTIONS -DPRECISE_GC \ tmpbuilddirectory/methods.c $FILES -lm -o $MAINFILE.bin fi - fi #!RAWFLAG -- 2.34.1