Class FineGrainedReferenceCountingGarbageCollector<N,D>
java.lang.Object
soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector<N,D,A>
soot.jimple.infoflow.solver.gcSolver.AbstractReferenceCountingGarbageCollector<N,D,heros.solver.Pair<soot.SootMethod,D>>
soot.jimple.infoflow.solver.gcSolver.fpc.FineGrainedReferenceCountingGarbageCollector<N,D>
- All Implemented Interfaces:
IGarbageCollector<N,,D> IGarbageCollectorPeer<heros.solver.Pair<soot.SootMethod,D>>
- Direct Known Subclasses:
AggressiveGarbageCollector,NormalGarbageCollector
public abstract class FineGrainedReferenceCountingGarbageCollector<N,D>
extends AbstractReferenceCountingGarbageCollector<N,D,heros.solver.Pair<soot.SootMethod,D>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FineGrainedReferenceCountingGarbageCollector<N,D>.soot.jimple.infoflow.solver.gcSolver.fpc.FineGrainedReferenceCountingGarbageCollector.GCThread protected static final org.slf4j.Loggerprotected intprotected intprotected intFields 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
ConstructorsConstructorDescriptionFineGrainedReferenceCountingGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N, soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<heros.solver.Pair<soot.SootMethod, D>, heros.solver.PathEdge<N, D>> jumpFunctions) FineGrainedReferenceCountingGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N, soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<heros.solver.Pair<soot.SootMethod, D>, heros.solver.PathEdge<N, D>> jumpFunctions, IGCReferenceProvider<heros.solver.Pair<soot.SootMethod, D>> referenceProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidgc()Performs the garbage collectionprotected heros.solver.Pair<soot.SootMethod,D> genAbstraction(heros.solver.PathEdge<N, D> edge) intlongprotected 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.AbstractReferenceCountingGarbageCollector
gcImmediate, getGcedAbstractions, getGcedEdges, notifyEdgeSchedule, notifyTaskProcessed, onBeforeRemoveEdges, setCheckChangeCounter, setEdgeThreshold, setMethodThreshold, setPeerGroup, setTriggerMethods inherited from class soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector
createReferenceProvider, getRemainingPathEdgeCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface soot.jimple.infoflow.solver.gcSolver.IGarbageCollectorPeer
hasActiveDependencies
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
sleepTimeSeconds
protected int sleepTimeSeconds -
maxPathEdgeCount
protected int maxPathEdgeCount -
maxMemoryConsumption
protected int maxMemoryConsumption -
gcThread
protected FineGrainedReferenceCountingGarbageCollector<N,D>.soot.jimple.infoflow.solver.gcSolver.fpc.FineGrainedReferenceCountingGarbageCollector.GCThread gcThread
-
-
Constructor Details
-
FineGrainedReferenceCountingGarbageCollector
public FineGrainedReferenceCountingGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N, soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<heros.solver.Pair<soot.SootMethod, D>, heros.solver.PathEdge<N, D>> jumpFunctions, IGCReferenceProvider<heros.solver.Pair<soot.SootMethod, D>> referenceProvider) -
FineGrainedReferenceCountingGarbageCollector
-
-
Method Details
-
initialize
protected void initialize()Description copied from class:AbstractGarbageCollectorInitializes the garbage collector- Overrides:
initializein classAbstractGarbageCollector<N,D, heros.solver.Pair<soot.SootMethod, D>>
-
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 -
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, heros.solver.Pair<soot.SootMethod, D>>
-
genAbstraction
- Specified by:
genAbstractionin classAbstractReferenceCountingGarbageCollector<N,D, heros.solver.Pair<soot.SootMethod, D>>
-