From 48c16d5d086f1354e2bc9f88bed720ca3e50eb26 Mon Sep 17 00:00:00 2001 From: jjenista Date: Mon, 5 Apr 2010 23:12:50 +0000 Subject: [PATCH] objects with bamboo-parameter flags got dropped from analysis by accident --- Robust/src/Analysis/Disjoint/AllocSite.java | 18 +++++++++++++++- Robust/src/Benchmarks/Ownership/makefile | 23 +++++---------------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/Robust/src/Analysis/Disjoint/AllocSite.java b/Robust/src/Analysis/Disjoint/AllocSite.java index 5d5fea81..d5020158 100644 --- a/Robust/src/Analysis/Disjoint/AllocSite.java +++ b/Robust/src/Analysis/Disjoint/AllocSite.java @@ -68,7 +68,23 @@ public class AllocSite extends Canonical { this.allocationDepth = allocationDepth; this.flatNew = flatNew; this.disjointId = disjointId; - this.isFlagged = disjointId != null; + + // mark this allocation site as being flagged + // for the analysis if + // 1) we have a non-null disjointID (a named flagged site) + // OR + // 2) the type is a class with Bamboo-parameter flags + this.isFlagged = false; + + if( disjointId != null ) { + this.isFlagged = true; + + } else if( flatNew.getType().isClass() && + flatNew.getType().getClassDesc().hasFlags() + ) { + this.isFlagged = true; + } + ithOldest = new Vector( allocationDepth ); id = generateUniqueAllocSiteID(); diff --git a/Robust/src/Benchmarks/Ownership/makefile b/Robust/src/Benchmarks/Ownership/makefile index 36258971..6634c810 100644 --- a/Robust/src/Benchmarks/Ownership/makefile +++ b/Robust/src/Benchmarks/Ownership/makefile @@ -1,25 +1,12 @@ BUILDSCRIPT=~/research/Robust/src/buildscript -BSFLAGS= -recover -justanalyze -ownership -ownaliasfiletab aliases.txt -enable-assertions #-ownwritedots final #-flatirtasks -#BSFLAGS= -recover -justanalyze -ownership -ownaliasfile aliases.txt -enable-assertions #-ownwritedots final #-flatirtasks -AD1= -ownallocdepth 1 -AD3= -ownallocdepth 3 -AD5= -ownallocdepth 5 -AD9= -ownallocdepth 9 +BSFLAGS= -recover -justanalyze -ownership -ownallocdepth 1 -enable-assertions #-ownwritedots final #-flatirtasks -all: ad1 +tabbed: + $(BUILDSCRIPT) $(BSFLAGS) -ownaliasfiletab aliases.txt *.java -ad1: - $(BUILDSCRIPT) $(BSFLAGS) $(AD1) *.java - -ad3: - $(BUILDSCRIPT) $(BSFLAGS) $(AD3) *.java - -ad5: - $(BUILDSCRIPT) $(BSFLAGS) $(AD5) *.java - -ad9: - $(BUILDSCRIPT) $(BSFLAGS) $(AD9) *.java +normal: + $(BUILDSCRIPT) $(BSFLAGS) -ownaliasfile aliases.txt *.java #view: PNGs -- 2.34.1