From: yeom Date: Wed, 27 Oct 2010 21:24:12 +0000 (+0000) Subject: changes: to prevent unnecessary LOCKXCHG when the unresolved queue is empty. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=59d06ee83274092c3b9d4aefeb0b5142813226f7;p=IRC.git changes: to prevent unnecessary LOCKXCHG when the unresolved queue is empty. --- diff --git a/Robust/src/Runtime/mlp_runtime.c b/Robust/src/Runtime/mlp_runtime.c index fb863e2b..f138f924 100644 --- a/Robust/src/Runtime/mlp_runtime.c +++ b/Robust/src/Runtime/mlp_runtime.c @@ -927,7 +927,7 @@ resolvePointer(REntry* rentry){ Hashtable* table=rentry->hashtable; MemoryQueue* queue; - if(table==NULL){ + if(table==NULL || table->unresolvedQueue==NULL){ //resolved already before related rentry is enqueued to the waiting queue return; }