From 29ec2b5f08c9704d27ecf15305a5b5808a0acf1e Mon Sep 17 00:00:00 2001 From: bdemsky Date: Mon, 14 Apr 2008 22:21:59 +0000 Subject: [PATCH] bug fixes --- Robust/src/Benchmarks/Prefetch/MatrixMultiply/makefile | 2 +- Robust/src/Runtime/thread.c | 4 ++-- Robust/src/buildscript | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Robust/src/Benchmarks/Prefetch/MatrixMultiply/makefile b/Robust/src/Benchmarks/Prefetch/MatrixMultiply/makefile index 07cf220e..f37a0459 100644 --- a/Robust/src/Benchmarks/Prefetch/MatrixMultiply/makefile +++ b/Robust/src/Benchmarks/Prefetch/MatrixMultiply/makefile @@ -1,6 +1,6 @@ MAINCLASS=MatrixMultiply SRC=${MAINCLASS}.java -FLAGS=-dsm -prefetch -optimize -printflat -profile -debug -excprefetch MatrixMultiply.main -excprefetch MMul.setValues -excprefetch MMul.transpose -mainclass ${MAINCLASS} -o ${MAINCLASS} -trueprob 0.9 +FLAGS=-dsm -prefetch -optimize -printflat -profile -debug -excprefetch MatrixMultiply.main -excprefetch MMul.setValues -excprefetch MMul.transpose -mainclass ${MAINCLASS} -o ${MAINCLASS} -trueprob 0.8 FLAGS2=-dsm -optimize -printflat -profile -debug -excprefetch MatrixMultiply.main -excprefetch MMul.setValues -excprefetch MMul.transpose -mainclass ${MAINCLASS} -o ${MAINCLASS}NP default: ../../../buildscript ${FLAGS2} ${SRC} diff --git a/Robust/src/Runtime/thread.c b/Robust/src/Runtime/thread.c index 2b388245..93e827aa 100644 --- a/Robust/src/Runtime/thread.c +++ b/Robust/src/Runtime/thread.c @@ -177,7 +177,7 @@ transstart: #ifdef THREADS void CALL01(___Thread______nativeJoin____, struct ___Thread___ * ___this___) { /* This is an evil, non portable hack*/ - pthread_join((thread_t)___this___->___threadid___, NULL); + pthread_join((pthread_t)VAR(___this___)->___threadid___, NULL); } void CALL01(___Thread______nativeCreate____, struct ___Thread___ * ___this___) { @@ -197,7 +197,7 @@ void CALL01(___Thread______nativeCreate____, struct ___Thread___ * ___this___) { usleep(1); } while(retval!=0); /* This next statement will likely not work on many machines */ - ___this___->___threadid___=thread; + VAR(___this___)->___threadid___=thread; pthread_attr_destroy(&nattr); } diff --git a/Robust/src/buildscript b/Robust/src/buildscript index e9e5565a..6fc2d977 100755 --- a/Robust/src/buildscript +++ b/Robust/src/buildscript @@ -178,7 +178,7 @@ fi # Build bristlecone/java sources #if ! java -Xms5m -Xmx100m $JAVAFORWARDOPTS -cp $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \ -if ! java $JAVAFORWARDOPTS -cp $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \ +if ! java $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \ $ROBUSTROOT/ClassLibrary/ -dir $BUILDDIR -precise \ $JAVAOPTS $SRCFILES then exit $? -- 2.34.1