changes: to prevent unnecessary LOCKXCHG when the unresolved queue is empty.
authoryeom <yeom>
Wed, 27 Oct 2010 21:24:12 +0000 (21:24 +0000)
committeryeom <yeom>
Wed, 27 Oct 2010 21:24:12 +0000 (21:24 +0000)
Robust/src/Runtime/mlp_runtime.c

index fb863e2b682c63b39d3e13e92fe0086325451e41..f138f9246ec63e4737ff00bd4453c19338e421b0 100644 (file)
@@ -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;
   }