bug fix in gcollect prefetch cache flush
[IRC.git] / Robust / src / Runtime / DSTM / interface / gCollect.c
index 6e9d339e204ff9f0f9005d4c1f4306cada81ca56..a6c115aa9a614cab4a8e3f677f8b0d560e9c8676 100644 (file)
@@ -112,10 +112,10 @@ void clearBlock(objstr_t *block) {
       if ((val>=tmpbegin)&(val<tmpend)) {
        prehashlistnode_t *tmp=curr->next=next->next;
        free(next);
-       next=tmp;
+       next=curr;
        //loop condition is broken now...need to check before incrementing
-       if (next==NULL)
-         break;
+       //      if (next==NULL)
+       // break;
       }
     }
     {