changes to enable no caching and no prefetching by adding DCACHE flag to
[IRC.git] / Robust / src / Runtime / DSTM / interface / prelookup.c
index 7e81d5f394fce7c65afbaa7755a7df8326399fd4..f003e0f1645a712112656cb056e7c50c8dabe67f 100644 (file)
@@ -191,6 +191,7 @@ unsigned int prehashResize(unsigned int newsize) {
 
 //Note: This is based on the implementation of the inserting a key in the first position of the hashtable 
 void prehashClear() {
+#ifdef CACHE
   int i, isFirstBin;
   prehashlistnode_t *ptr, *prev, *curr;
   
@@ -220,5 +221,6 @@ void prehashClear() {
   }
   pflookup.hack2=pflookup.hack;
   pflookup.hack=oldcache;
+#endif
 }