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>

public class AggressiveGarbageCollector<N,D> extends AbstractGarbageCollector<N,D,soot.SootMethod>
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
  • Constructor Details

    • AggressiveGarbageCollector

      public AggressiveGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N,soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<soot.SootMethod,heros.solver.PathEdge<N,D>> jumpFunctions)
  • Method Details

    • notifyEdgeSchedule

      public void notifyEdgeSchedule(heros.solver.PathEdge<N,D> edge)
      Description copied from interface: IGarbageCollector
      Notifies the garbage collector that a new edge has been scheduled for processing
      Parameters:
      edge - The edge that has been scheduled
    • notifyTaskProcessed

      public void notifyTaskProcessed(heros.solver.PathEdge<N,D> edge)
      Description copied from interface: IGarbageCollector
      Notifies 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: IGarbageCollector
      Performs the garbage collection
    • getGcedAbstractions

      public int getGcedAbstractions()
      Description copied from interface: IGarbageCollector
      Gets 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: IGarbageCollector
      Gets the number of taint abstractions that were removed during garbage collection
      Returns:
      The number of taint abstractions that were removed during garbage collection
    • createReferenceProvider

      protected IGCReferenceProvider<soot.SootMethod> createReferenceProvider()
      Description copied from class: AbstractGarbageCollector
      Creates the reference provider that garbage collectors can use to identify dependencies
      Specified by:
      createReferenceProvider in class AbstractGarbageCollector<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: IGarbageCollector
      Notifies the garbage collector that the IFDS solver has finished propagating its edges