Class NormalGarbageCollector<N,D extends FastSolverLinkedNode<D,N>>
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>
soot.jimple.infoflow.solver.gcSolver.fpc.NormalGarbageCollector<N,D>
- All Implemented Interfaces:
IGarbageCollector<N,,D> IGarbageCollectorPeer<heros.solver.Pair<soot.SootMethod,D>>
public class NormalGarbageCollector<N,D extends FastSolverLinkedNode<D,N>>
extends FineGrainedReferenceCountingGarbageCollector<N,D>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AbstrationDependencyGraph<D>protected final MyConcurrentHashMap<heros.solver.Pair<soot.SootMethod,D>, Map<EndSummary<N, D>, EndSummary<N, D>>> protected static final org.slf4j.LoggerFields inherited from class soot.jimple.infoflow.solver.gcSolver.fpc.FineGrainedReferenceCountingGarbageCollector
gcThread, maxMemoryConsumption, maxPathEdgeCount, sleepTimeSecondsFields 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
ConstructorsConstructorDescriptionNormalGarbageCollector(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, MyConcurrentHashMap<heros.solver.Pair<soot.SootMethod, D>, Map<EndSummary<N, D>, EndSummary<N, D>>> endSummary, AbstrationDependencyGraph<D> adg) -
Method Summary
Modifier and TypeMethodDescriptionprotected IGCReferenceProvider<heros.solver.Pair<soot.SootMethod,D>> Creates the reference provider that garbage collectors can use to identify dependenciesbooleanhasActiveDependencies(heros.solver.Pair<soot.SootMethod, D> abstraction) 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.fpc.FineGrainedReferenceCountingGarbageCollector
gc, genAbstraction, getMaxMemoryConsumption, getMaxPathEdgeCount, initialize, onAfterRemoveEdges, setSleepTimeSecondsMethods 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 -
abstDependencyGraph
-
endSummary
protected final MyConcurrentHashMap<heros.solver.Pair<soot.SootMethod,D extends FastSolverLinkedNode<D, endSummaryN>>, Map<EndSummary<N, D extends FastSolverLinkedNode<D, N>>, EndSummary<N, D extends FastSolverLinkedNode<D, N>>>>
-
-
Constructor Details
-
NormalGarbageCollector
public NormalGarbageCollector(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, MyConcurrentHashMap<heros.solver.Pair<soot.SootMethod, D>, Map<EndSummary<N, D>, EndSummary<N, D>>> endSummary, AbstrationDependencyGraph<D> adg)
-
-
Method Details
-
hasActiveDependencies
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:
abstraction- The abstraction to check- Returns:
- True if the abstraction has active dependencies and thus cannot be garbage-collected, false otherwise
-
createReferenceProvider
Description copied from class:AbstractGarbageCollectorCreates the reference provider that garbage collectors can use to identify dependencies- Specified by:
createReferenceProviderin classAbstractGarbageCollector<N,D extends FastSolverLinkedNode<D, N>, heros.solver.Pair<soot.SootMethod, D extends FastSolverLinkedNode<D, N>>> - Returns:
- The new reference provider
-
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 extends FastSolverLinkedNode<D, N>> - Specified by:
notifySolverTerminatedin interfaceIGarbageCollectorPeer<N>- Overrides:
notifySolverTerminatedin classFineGrainedReferenceCountingGarbageCollector<N,D extends FastSolverLinkedNode<D, N>>
-