From 08609d8f4e858a158e1fa5a2bde9a730eaee2828 Mon Sep 17 00:00:00 2001 From: yeom Date: Thu, 21 Jan 2010 00:27:51 +0000 Subject: [PATCH] changes. --- Robust/src/IR/Flat/BuildCode.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index fe1f9848..afca5165 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -3458,6 +3458,7 @@ public class BuildCode { output.println(" struct QueueItem* nextQItem=getHead(allocQueue);"); output.println(" while( nextQItem != NULL ){"); output.println(" if(contains(newWaitingItemQueue,nextQItem) && isRunnable(allocQueue,nextQItem)){"); + output.println(" if(seseToIssue->common.unresolvedDependencies>0)"); output.println(" --(seseToIssue->common.unresolvedDependencies);"); output.println(" }"); output.println(" nextQItem=getNextQueueItem(nextQItem);"); @@ -3691,9 +3692,10 @@ public class BuildCode { output.println(" WaitingElement* item=qItem->objectptr;"); output.println(" SESEcommon* seseItem=(SESEcommon*)item->seseRec;"); output.println(" if(seseItem->classID==___params___->common.classID && item->id==___params___->common.waitingQueueItemID){"); + output.println(" struct QueueItem* nItem=getNextQueueItem(qItem);"); output.println(" removeItem(___params___->common.parent->allocSiteArray[idx].waitingQueue,qItem);"); output.println(" removed=1;"); - output.println(" qItem=getNextQueueItem(qItem);"); + output.println(" qItem=nItem;"); output.println(" }else if(removed){"); output.println(" qItem=NULL;"); output.println(" }else{"); -- 2.34.1