Class AggressiveGarbageCollector<N,D>

All Implemented Interfaces:
IGarbageCollector<N,D>, IGarbageCollectorPeer<heros.solver.Pair<soot.SootMethod,D>>

public class AggressiveGarbageCollector<N,D> extends FineGrainedReferenceCountingGarbageCollector<N,D>
  • Constructor Details

    • AggressiveGarbageCollector

      public AggressiveGarbageCollector(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)
    • AggressiveGarbageCollector

      public AggressiveGarbageCollector(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)
  • Method Details

    • createReferenceProvider

      protected IGCReferenceProvider<heros.solver.Pair<soot.SootMethod,D>> 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,heros.solver.Pair<soot.SootMethod,D>>
      Returns:
      The new reference provider
    • hasActiveDependencies

      public boolean hasActiveDependencies(heros.solver.Pair<soot.SootMethod,D> abstraction)
      Description copied from interface: IGarbageCollectorPeer
      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 collected
      Parameters:
      abstraction - The abstraction to check
      Returns:
      True if the abstraction has active dependencies and thus cannot be garbage-collected, false otherwise