Class MethodLevelReferenceCountingGarbageCollector<N,D>
java.lang.Object
soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector<N,D,A>
soot.jimple.infoflow.solver.gcSolver.AbstractReferenceCountingGarbageCollector<N,D,soot.SootMethod>
soot.jimple.infoflow.solver.gcSolver.MethodLevelReferenceCountingGarbageCollector<N,D>
- All Implemented Interfaces:
IGarbageCollector<N,,D> IGarbageCollectorPeer<soot.SootMethod>
- Direct Known Subclasses:
DefaultGarbageCollector,ThreadedGarbageCollector
public class MethodLevelReferenceCountingGarbageCollector<N,D>
extends AbstractReferenceCountingGarbageCollector<N,D,soot.SootMethod>
-
Field Summary
Fields inherited from class soot.jimple.infoflow.solver.gcSolver.AbstractReferenceCountingGarbageCollector
checkChangeCounter, edgeCounterForThreshold, edgeThreshold, gcedAbstractions, gcedEdges, gcScheduleSet, jumpFnCounter, methodThreshold, oldEdges, peerGroup, trigger, validateEdgesFields inherited from class soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector
icfg, jumpFunctions, referenceProvider -
Constructor Summary
ConstructorsConstructorDescriptionMethodLevelReferenceCountingGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N, soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<soot.SootMethod, heros.solver.PathEdge<N, D>> jumpFunctions) MethodLevelReferenceCountingGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N, soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<soot.SootMethod, heros.solver.PathEdge<N, D>> jumpFunctions, IGCReferenceProvider<soot.SootMethod> referenceProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected IGCReferenceProvider<soot.SootMethod>Creates the reference provider that garbage collectors can use to identify dependenciesvoidgc()Performs the garbage collectionprotected soot.SootMethodgenAbstraction(heros.solver.PathEdge<N, D> edge) booleanhasActiveDependencies(soot.SootMethod method) Checks whether the given abstraction has any open dependencies in any of the solvers that are members of this peer group that prevent its jump functions from being garbage collectedvoidNotifies the garbage collector that the IFDS solver has finished propagating its edgesMethods inherited from class soot.jimple.infoflow.solver.gcSolver.AbstractReferenceCountingGarbageCollector
gcImmediate, getGcedAbstractions, getGcedEdges, notifyEdgeSchedule, notifyTaskProcessed, onAfterRemoveEdges, onBeforeRemoveEdges, setCheckChangeCounter, setEdgeThreshold, setMethodThreshold, setPeerGroup, setTriggerMethods inherited from class soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector
getRemainingPathEdgeCount, initialize
-
Constructor Details
-
MethodLevelReferenceCountingGarbageCollector
public MethodLevelReferenceCountingGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N, soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<soot.SootMethod, heros.solver.PathEdge<N, D>> jumpFunctions, IGCReferenceProvider<soot.SootMethod> referenceProvider) -
MethodLevelReferenceCountingGarbageCollector
-
-
Method Details
-
hasActiveDependencies
public boolean hasActiveDependencies(soot.SootMethod method) Description copied from interface:IGarbageCollectorPeerChecks whether the given abstraction has any open dependencies in any of the solvers that are members of this peer group that prevent its jump functions from being garbage collected- Parameters:
method- The abstraction to check- Returns:
- True if the abstraction has active dependencies and thus cannot be garbage-collected, false otherwise
-
genAbstraction
- Specified by:
genAbstractionin classAbstractReferenceCountingGarbageCollector<N,D, soot.SootMethod>
-
gc
public void gc()Description copied from interface:IGarbageCollectorPerforms the garbage collection -
notifySolverTerminated
public void notifySolverTerminated()Description copied from interface:IGarbageCollectorNotifies the garbage collector that the IFDS solver has finished propagating its edges -
createReferenceProvider
Description copied from class:AbstractGarbageCollectorCreates the reference provider that garbage collectors can use to identify dependencies- Specified by:
createReferenceProviderin classAbstractGarbageCollector<N,D, soot.SootMethod> - Returns:
- The new reference provider
-