Interface MemoryAllocationValidator


public interface MemoryAllocationValidator
  • Field Details

  • Method Details

    • reserveMemory

      void reserveMemory(String allocationTag, long delta)
      Check if memory can be reserved. Account for reserved memory if reservation is possible. Throw exception otherwise.
    • tryReserveMemory

      boolean tryReserveMemory(String allocationTag, long delta)
      Check if memory can be reserved. Account for reserved memory if reservation is possible and return true. Return false otherwise.