From 7a756677bc58c38a8437b5d8773cba279073970f Mon Sep 17 00:00:00 2001 From: jjenista Date: Mon, 25 Oct 2010 23:20:53 +0000 Subject: [PATCH] support for RCR and task record pool allocation --- Robust/src/IR/Flat/BuildCode.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(); -- 2.34.1