From: jjenista Date: Mon, 25 Oct 2010 23:20:53 +0000 (+0000) Subject: support for RCR and task record pool allocation X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7a756677bc58c38a8437b5d8773cba279073970f;p=IRC.git support for RCR and task record pool allocation --- diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index af2d0697..f5816ca6 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -3977,7 +3977,13 @@ public class BuildCode { // will decrement when it retires, to say it is done using its own // record, and the other count is for the parent that will remember // the static name of this new child below - output.println(" seseToIssue->common.refCount = 2;"); + if( state.RCR ) { + // if we're using RCR, ref count is 3 because the traverser has + // a reference, too + output.println(" seseToIssue->common.refCount = 3;"); + } else { + output.println(" seseToIssue->common.refCount = 2;"); + } // all READY in-vars should be copied now and be done with it Iterator tempItr = fsen.getReadyInVarSet().iterator();