Class ThreadedGarbageCollector<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>
soot.jimple.infoflow.solver.gcSolver.ThreadedGarbageCollector<N,D>
- Type Parameters:
N-D-
- All Implemented Interfaces:
IGarbageCollector<N,,D> IGarbageCollectorPeer<soot.SootMethod>
public class ThreadedGarbageCollector<N,D>
extends MethodLevelReferenceCountingGarbageCollector<N,D>
Garbage collector that performs its tasks in a separate thread
- Author:
- Steven Arzt
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionThreadedGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N, soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<soot.SootMethod, heros.solver.PathEdge<N, D>> jumpFunctions) ThreadedGarbageCollector(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 TypeMethodDescriptionvoidgc()Performs the garbage collectionintlongprotected voidInitializes the garbage collectorvoidNotifies the garbage collector that the IFDS solver has finished propagating its edgesprotected voidMethod that is called after the last edge has been removed from the jump functionsvoidsetSleepTimeSeconds(int sleepTimeSeconds) Sets the time to wait between garbage collection cycles in secondsMethods inherited from class soot.jimple.infoflow.solver.gcSolver.MethodLevelReferenceCountingGarbageCollector
createReferenceProvider, genAbstraction, hasActiveDependenciesMethods inherited from class soot.jimple.infoflow.solver.gcSolver.AbstractReferenceCountingGarbageCollector
gcImmediate, getGcedAbstractions, getGcedEdges, notifyEdgeSchedule, notifyTaskProcessed, onBeforeRemoveEdges, setCheckChangeCounter, setEdgeThreshold, setMethodThreshold, setPeerGroup, setTriggerMethods inherited from class soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector
getRemainingPathEdgeCount
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
ThreadedGarbageCollector
public ThreadedGarbageCollector(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) -
ThreadedGarbageCollector
-
-
Method Details
-
initialize
protected void initialize()Description copied from class:AbstractGarbageCollectorInitializes the garbage collector- Overrides:
initializein classAbstractGarbageCollector<N,D, soot.SootMethod>
-
gc
public void gc()Description copied from interface:IGarbageCollectorPerforms the garbage collection- Specified by:
gcin interfaceIGarbageCollector<N,D> - Overrides:
gcin classMethodLevelReferenceCountingGarbageCollector<N,D>
-
notifySolverTerminated
public void notifySolverTerminated()Description copied from interface:IGarbageCollectorNotifies the garbage collector that the IFDS solver has finished propagating its edges- Specified by:
notifySolverTerminatedin interfaceIGarbageCollector<N,D> - Specified by:
notifySolverTerminatedin interfaceIGarbageCollectorPeer<N>- Overrides:
notifySolverTerminatedin classMethodLevelReferenceCountingGarbageCollector<N,D>
-
setSleepTimeSeconds
public void setSleepTimeSeconds(int sleepTimeSeconds) Sets the time to wait between garbage collection cycles in seconds- Parameters:
sleepTimeSeconds- The time to wait between GC cycles in seconds
-
getMaxPathEdgeCount
public long getMaxPathEdgeCount() -
getMaxMemoryConsumption
public int getMaxMemoryConsumption() -
onAfterRemoveEdges
protected void onAfterRemoveEdges()Description copied from class:AbstractReferenceCountingGarbageCollectorMethod that is called after the last edge has been removed from the jump functions- Overrides:
onAfterRemoveEdgesin classAbstractReferenceCountingGarbageCollector<N,D, soot.SootMethod>
-