Class OutOfMemoryReason

java.lang.Object
soot.jimple.infoflow.memory.reasons.OutOfMemoryReason
All Implemented Interfaces:
ISolverTerminationReason

public class OutOfMemoryReason extends Object implements ISolverTerminationReason
Reason for terminating a data flow solver that has run out of memory
Author:
Steven Arzt
  • Constructor Details

    • OutOfMemoryReason

      public OutOfMemoryReason(long currentMemory)
      Creates a new instance of the OutOfMemoryReason class
      Parameters:
      currentMemory - The amount of memory that is currently in use
  • Method Details

    • getCurrentMemory

      public long getCurrentMemory()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • combine

      public ISolverTerminationReason combine(ISolverTerminationReason terminationReason)
      Description copied from interface: ISolverTerminationReason
      Combines this termination reason with the given one
      Specified by:
      combine in interface ISolverTerminationReason
      Parameters:
      terminationReason - The reason to combine this one with
      Returns:
      A combined termination reason that models the current reason as well as the given one, i.e., the fact that the solver was terminated for multiple reasons