From a85168ca24fb61e2e10e706edf5ebbf2a7ee01f9 Mon Sep 17 00:00:00 2001 From: jjenista Date: Wed, 11 May 2011 17:59:18 +0000 Subject: [PATCH] only do this if we are using oooj-style tasks after this analysis otherwise it crashes --- Robust/src/Analysis/Disjoint/DisjointAnalysis.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Robust/src/Analysis/Disjoint/DisjointAnalysis.java b/Robust/src/Analysis/Disjoint/DisjointAnalysis.java index fae647f9..6f706d11 100644 --- a/Robust/src/Analysis/Disjoint/DisjointAnalysis.java +++ b/Robust/src/Analysis/Disjoint/DisjointAnalysis.java @@ -1723,11 +1723,13 @@ public class DisjointAnalysis implements HeapAnalysis { // of programs with no tasks/SESEs/rblocks... //XXXXXXXXXXXXXXXXXXXXXXXXX //need to consider more - FlatNode nextFN=fmCallee.getNext(0); - if( nextFN instanceof FlatSESEEnterNode ) { - FlatSESEEnterNode calleeSESE=(FlatSESEEnterNode)nextFN; - if(!calleeSESE.getIsLeafSESE()) { - rg.makeInaccessible(liveness.getLiveInTemps(fmContaining, fn) ); + if( state.OOOJAVA ) { + FlatNode nextFN=fmCallee.getNext(0); + if( nextFN instanceof FlatSESEEnterNode ) { + FlatSESEEnterNode calleeSESE=(FlatSESEEnterNode)nextFN; + if(!calleeSESE.getIsLeafSESE()) { + rg.makeInaccessible(liveness.getLiveInTemps(fmContaining, fn) ); + } } } -- 2.34.1