From: bdemsky Date: Tue, 22 Sep 2009 19:28:35 +0000 (+0000) Subject: more bug fixes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0df6568474895874120e9a1e7bf4e7442a8e3130;p=IRC.git more bug fixes --- diff --git a/Robust/src/Runtime/DSTM/interface/trans.c b/Robust/src/Runtime/DSTM/interface/trans.c index 2db0e84c..f0523147 100644 --- a/Robust/src/Runtime/DSTM/interface/trans.c +++ b/Robust/src/Runtime/DSTM/interface/trans.c @@ -287,6 +287,8 @@ inline int findmax(int *array, int arraylength) { return max; } +#define INLINEPREFETCH 1 + /* This function is a prefetch call generated by the compiler that * populates the shared primary prefetch queue*/ void prefetch(int siteid, int ntuples, unsigned int *oids, unsigned short *endoffsets, short *arrayfields) { @@ -461,8 +463,10 @@ void transInit() { } while(retval!=0); #endif #endif +#ifndef INLINEPREFETCH pthread_detach(tPrefetch); #endif +#endif } /* This function stops the threads spawned */