changes: don't need to have resolvePointer opr for coarse cases.
authoryeom <yeom>
Fri, 5 Nov 2010 20:59:46 +0000 (20:59 +0000)
committeryeom <yeom>
Fri, 5 Nov 2010 20:59:46 +0000 (20:59 +0000)
Robust/src/Runtime/mlp_runtime.c

index ad733fc460ba9a367bd7fc77ac719fda743d1404..ee4a593feaba8fda8b97049597cc8ee5ff45074b 100644 (file)
@@ -969,8 +969,13 @@ int RESOLVEBUF(MemoryQueue * q, SESEcommon *seseCommon){
 void resolvePointer(REntry* rentry){  
   Hashtable* table=(Hashtable *)rentry->qitem;
   MemoryQueue* queue;
-  if(table==NULL || table->unresolvedQueue==NULL){
-    //resolved already before related rentry is enqueued to the waiting queue
+  // we don't need to consider unresolved cases for coarse rentries.
+  // or if resolved already before related rentry is enqueued to the waiting queue
+  if(rentry->type==COARSE || 
+     rentry->type==PARENTCOARSE ||
+     rentry->type==SCCITEM || 
+     table==NULL ||
+     table->unresolvedQueue==NULL){   
     return;
   }
   struct Queue* val;