hack to avoid copying transaction local objects
authorbdemsky <bdemsky>
Fri, 30 Jan 2009 20:59:57 +0000 (20:59 +0000)
committerbdemsky <bdemsky>
Fri, 30 Jan 2009 20:59:57 +0000 (20:59 +0000)
Robust/src/IR/Flat/BuildCode.java

index 14d135ddb528b93d62cee97f396b8b0d7002f989..44c0a6e8a6be66761f913acd51f6fab9b0acdadd 100644 (file)
@@ -2197,7 +2197,10 @@ public class BuildCode {
     }
     if (state.DSM && locality.getAtomic(lb).get(fn).intValue()>0&&!fn.isGlobal()) {
       String revertptr=generateTemp(fm, reverttable.get(lb),lb);
-      output.println("trans->revertlist="+revertptr+";");
+      String dst=generateTemp(fm,fn.getDst(),lb);
+      output.println(dst+"->___localcopy___=1;");
+      output.println(dst+"->"+nextobjstr+"="+revertptr+";");
+      output.println("trans->revertlist=(struct ___Object___ *)"+dst+";");
     }
   }