Skip to content

Commit 7d47e52

Browse files
committed
Do not cache soot objects in a static variable
1 parent 944263d commit 7d47e52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/soot/jimple/toolkits/callgraph/ClinitElimAnalysis.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class ClinitElimAnalysis extends ForwardFlowAnalysis<Unit, FlowSet<SootMe
3737
private final CallGraph cg = Scene.v().getCallGraph();
3838
private final UnitGraph g;
3939

40-
private static FlowSet<SootMethod> cachedFlowSet = null;
40+
private FlowSet<SootMethod> cachedFlowSet = null;
4141

4242
public ClinitElimAnalysis(UnitGraph g) {
4343
super(g);
@@ -88,6 +88,7 @@ protected FlowSet<SootMethod> newInitialFlow() {
8888
cachedFlowSet.copy(returnedFlowSet);
8989
return returnedFlowSet;
9090
}
91+
9192
protected FlowSet<SootMethod> calculateInitialFlow() {
9293
HashSparseSet<SootMethod> newFlowSet = new HashSparseSet<>();
9394
for (Iterator<Edge> mIt = cg.edgesOutOf(g.getBody().getMethod()); mIt.hasNext();) {

0 commit comments

Comments
 (0)