From a52d418e7c4c3c428a6ff41fdb4d21b83aafe739 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 14 May 2009 21:36:53 +0000 Subject: [PATCH] changes --- Robust/src/Runtime/STM/stm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Robust/src/Runtime/STM/stm.c b/Robust/src/Runtime/STM/stm.c index 545875fb..afcf7de0 100644 --- a/Robust/src/Runtime/STM/stm.c +++ b/Robust/src/Runtime/STM/stm.c @@ -553,7 +553,7 @@ int alttraverseCache() { } chashlistnode_t *curr = c_list; /* Inner loop to traverse the linked list of the cache lookupTable */ - while(curr != NULL) { + while(likely(curr != NULL)) { //if the first bin in hash table is empty objheader_t * headeraddr=&((objheader_t *) curr->val)[-1]; objheader_t *header=(objheader_t *)(((char *)curr->key)-sizeof(objheader_t)); @@ -616,8 +616,8 @@ int alttraverseCache() { curr = curr->lnext; } //THIS IS THE SERIALIZATION POINT ***** - for(i=0; i=0; i--) { + objheader_t * header=oidrdlocked[i]; unsigned int version=oidrdversion[i]; if(header->lock>=0) { if(version != header->version) { -- 2.34.1