Class AbstractGarbageCollector<N,D,A>

java.lang.Object
soot.jimple.infoflow.solver.gcSolver.AbstractGarbageCollector<N,D,A>
All Implemented Interfaces:
IGarbageCollector<N,D>
Direct Known Subclasses:
AbstractReferenceCountingGarbageCollector, AggressiveGarbageCollector

public abstract class AbstractGarbageCollector<N,D,A> extends Object implements IGarbageCollector<N,D>
Abstract base class for garbage collectors
Author:
Steven Arzt
  • Field Details

    • icfg

      protected final soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N,soot.SootMethod> icfg
    • referenceProvider

      protected final IGCReferenceProvider<A> referenceProvider
    • jumpFunctions

      protected final soot.util.ConcurrentHashMultiMap<A,heros.solver.PathEdge<N,D>> jumpFunctions
  • Constructor Details

    • AbstractGarbageCollector

      public AbstractGarbageCollector(soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<N,soot.SootMethod> icfg, soot.util.ConcurrentHashMultiMap<A,heros.solver.PathEdge<N,D>> jumpFunctions, IGCReferenceProvider<A> referenceProvider)
    • AbstractGarbageCollector

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

    • initialize

      protected void initialize()
      Initializes the garbage collector
    • createReferenceProvider

      protected abstract IGCReferenceProvider<A> createReferenceProvider()
      Creates the reference provider that garbage collectors can use to identify dependencies
      Returns:
      The new reference provider
    • getRemainingPathEdgeCount

      protected long getRemainingPathEdgeCount()