Class GarbageCollectorPeerGroup<A>

java.lang.Object
soot.jimple.infoflow.solver.gcSolver.GarbageCollectorPeerGroup<A>
All Implemented Interfaces:
IGarbageCollectorPeer<A>

public class GarbageCollectorPeerGroup<A> extends Object implements IGarbageCollectorPeer<A>
Set of multiple garbage collectors that share a set of active dependencies
Author:
Steven Arzt
  • Constructor Details

    • GarbageCollectorPeerGroup

      public GarbageCollectorPeerGroup()
    • GarbageCollectorPeerGroup

      public GarbageCollectorPeerGroup(Collection<IGarbageCollectorPeer<A>> peers)
  • Method Details

    • hasActiveDependencies

      public boolean hasActiveDependencies(A 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
      Specified by:
      hasActiveDependencies in interface IGarbageCollectorPeer<A>
      Parameters:
      abstraction - The abstraction to check
      Returns:
      True if the abstraction has active dependencies and thus cannot be garbage-collected, false otherwise
    • notifySolverTerminated

      public void notifySolverTerminated()
      Specified by:
      notifySolverTerminated in interface IGarbageCollectorPeer<A>
    • addGarbageCollector

      public void addGarbageCollector(IGarbageCollectorPeer<A> peer)
      Adds a garbage collector to this peer group
      Parameters:
      peer - The garbage collector to add