Class AggressiveGarbageCollector<N,D>
java.lang.Object
soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector<N,D,soot.SootMethod>
soot.jimple.infoflow.solver.gcSolver.AggressiveGarbageCollector<N,D>
- All Implemented Interfaces:
IGarbageCollector<N,D>
Aggressive garbage collector that optimizes memory usage, but may degrade
performance by removing path edges too early. This implementation does not
necessarily guarantee that the analysis terminates at all. Use with caution.
- Author:
- Steven Arzt
-
Field Summary
Fields inherited from class soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector
icfg, jumpFunctions, referenceProvider -
Constructor Summary
ConstructorsConstructorDescriptionAggressiveGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N, soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<soot.SootMethod, heros.solver.PathEdge<N, D>> jumpFunctions) -
Method Summary
Modifier and TypeMethodDescriptionprotected IGCReferenceProvider<soot.SootMethod>Creates the reference provider that garbage collectors can use to identify dependenciesvoidgc()Performs the garbage collectionintGets the number of methods for which taint abstractions were removed during garbage collectionintGets the number of taint abstractions that were removed during garbage collectionvoidnotifyEdgeSchedule(heros.solver.PathEdge<N, D> edge) Notifies the garbage collector that a new edge has been scheduled for processingvoidNotifies the garbage collector that the IFDS solver has finished propagating its edgesvoidnotifyTaskProcessed(heros.solver.PathEdge<N, D> edge) Notifies the garbage collector that an edge has been fully processedvoidsetMethodThreshold(int threshold) Sets the number of methods for which edges must have been added before garbage collection is startedMethods inherited from class soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector
getRemainingPathEdgeCount, initialize
-
Constructor Details
-
AggressiveGarbageCollector
-
-
Method Details
-
notifyEdgeSchedule
Description copied from interface:IGarbageCollectorNotifies the garbage collector that a new edge has been scheduled for processing- Parameters:
edge- The edge that has been scheduled
-
notifyTaskProcessed
Description copied from interface:IGarbageCollectorNotifies the garbage collector that an edge has been fully processed- Parameters:
edge- The edge has been fully processed
-
gc
public void gc()Description copied from interface:IGarbageCollectorPerforms the garbage collection -
getGcedAbstractions
public int getGcedAbstractions()Description copied from interface:IGarbageCollectorGets the number of methods for which taint abstractions were removed during garbage collection- Returns:
- The number of methods for which taint abstractions were removed during garbage collection
-
getGcedEdges
public int getGcedEdges()Description copied from interface:IGarbageCollectorGets the number of taint abstractions that were removed during garbage collection- Returns:
- The number of taint abstractions that were removed during garbage collection
-
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
-
setMethodThreshold
public void setMethodThreshold(int threshold) Sets the number of methods for which edges must have been added before garbage collection is started- Parameters:
threshold- The threshold of new methods required to trigger garbage collection
-
notifySolverTerminated
public void notifySolverTerminated()Description copied from interface:IGarbageCollectorNotifies the garbage collector that the IFDS solver has finished propagating its edges
-