From 4746ec64fc65c1384d52a778372e81f8afe55e63 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 12 Mar 2009 21:28:33 +0000 Subject: [PATCH] check in working version --- .../Prefetch/ManualPrefetch/Chase/Chase.java | 12 ++++++------ .../Prefetch/ManualPrefetch/Chase/makefile | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/Chase.java b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/Chase.java index 176bfa0e..f76f5bb5 100644 --- a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/Chase.java +++ b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/Chase.java @@ -13,7 +13,7 @@ public class Chase extends Thread { public static void main(String [] argv) { Chase c; - int numTraverse = 40000; + int numTraverse = 10000; atomic { Foo fold=global new Foo(); @@ -36,18 +36,18 @@ public class Chase extends Thread { offsets[0] = getoffset{Chase, base}; offsets[1] = (short) 0; offsets[2] = getoffset{Foo, next}; - offsets[3] = (short) 3000; + offsets[3] = (short) 4000; System.rangePrefetch(this, offsets); atomic { Foo b=base; - int i = 50; + int i = 0; while(b!=null) { b=b.next; i++; - if((i&3000) == 0) { - i=50; + if(i == 4001) { + i=0; offsets1[0] = getoffset{Foo, next}; - offsets1[1] = (short) 3000; + offsets1[1] = (short) 4000; System.rangePrefetch(b, offsets1); } } diff --git a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/makefile b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/makefile index 91a67f4b..9920e86f 100644 --- a/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/makefile +++ b/Robust/src/Benchmarks/Prefetch/ManualPrefetch/Chase/makefile @@ -1,6 +1,6 @@ MAINCLASS=Chase SRC1=${MAINCLASS}.java -FLAGS1=-dsm -rangeprefetch -dsmcaching -optimize -mainclass ${MAINCLASS} -trueprob 0.99 +FLAGS1=-dsm -rangeprefetch -dsmcaching -optimize -mainclass ${MAINCLASS} -trueprob 0.99 -transstats #for testing no java option #FLAGS=-dsm -prefetch -optimize -debug -excprefetch Chase.main -excprefetch Chase.Chase -mainclass ${MAINCLASS} -trueprob 0.99 -nojava default: -- 2.34.1