bug fix: previously assumed that all stalled tempDesc belongs to local struct, but...
authoryeom <yeom>
Sat, 17 Jul 2010 18:58:33 +0000 (18:58 +0000)
committeryeom <yeom>
Sat, 17 Jul 2010 18:58:33 +0000 (18:58 +0000)
Robust/src/IR/Flat/BuildCode.java

index 3b6c8a853d3d8887916b33e9450fd925e8cd9e72..3bd86e8d45f21f2c34c518dba5182604d6185501 100644 (file)
@@ -2870,8 +2870,7 @@ public class BuildCode {
             if( waitingElement.getStatus() >= ConflictNode.COARSE ){
               output.println("     rentry=mlpCreateREntry("+ waitingElement.getStatus()+ ", seseCaller);");
             }else{
-              output.println("     rentry=mlpCreateFineREntry("+ waitingElement.getStatus()+ ", seseCaller,  (void*)&___locals___."+ waitingElement.getDynID() + ");");
-  //            output.println("     rentry=mlpCreateFineREntry("+ waitingElement.getStatus()+ ", seseCaller,  ___locals___."+ waitingElement.getDynID() + "->oid);");  
+              output.println("     rentry=mlpCreateFineREntry("+ waitingElement.getStatus()+ ", seseCaller,  (void*)&" +generateTemp(fm,waitingElement.getTempDesc(),lb)+ ");");
             }         
             output.println("     psem_init( &(rentry->parentStallSem) );");
             output.println("     rentry->queue=seseCaller->memoryQueueArray["+ waitingElement.getQueueID()+ "];");