From 8093891d89941ea1d486d790b784963d3b10a0fe Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 2 Jul 2009 04:07:17 +0000 Subject: [PATCH] bug fix --- Robust/src/IR/Flat/BuildCode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index b0491f82..5c0991fa 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -3144,7 +3144,7 @@ public class BuildCode { output.println(generateTemp(fm,fn.getDst(),lb)+"=allocate_newarray("+arrayid+", "+generateTemp(fm, fn.getSize(),lb)+");"); } } else { - if (fn.isGlobal()) { + if (fn.isGlobal()&&(state.DSM||state.SINGLETM)) { output.println(generateTemp(fm,fn.getDst(),lb)+"=allocate_newglobal("+fn.getType().getClassDesc().getId()+");"); } else if (GENERATEPRECISEGC) { output.println(generateTemp(fm,fn.getDst(),lb)+"=allocate_new("+localsprefixaddr+", "+fn.getType().getClassDesc().getId()+");"); -- 2.34.1