Module openj9.dtfj

Class DumpReaderAddressSpace

java.lang.Object
com.ibm.dtfj.addressspace.CommonAddressSpace
com.ibm.dtfj.addressspace.DumpReaderAddressSpace
All Implemented Interfaces:
IAbstractAddressSpace

public class DumpReaderAddressSpace extends CommonAddressSpace
  • Constructor Details

    • DumpReaderAddressSpace

      public DumpReaderAddressSpace(MemoryRange[] ranges, DumpReader reader, boolean isLittleEndian, boolean is64Bit)
  • Method Details

    • isExecutable

      public boolean isExecutable(int asid, long address) throws MemoryAccessException
      Parameters:
      asid - an address space ID
      address - a byte-offset into the asid
      Returns:
      true if this memory address is within an executable page
      Throws:
      MemoryAccessException - if the memory cannot be read
    • isReadOnly

      public boolean isReadOnly(int asid, long address) throws MemoryAccessException
      Parameters:
      asid - an address space ID
      address - a byte-offset into the asid
      Returns:
      true if write access to this memory address was disabled in the image
      Throws:
      MemoryAccessException - if the memory cannot be read
    • isShared

      public boolean isShared(int asid, long address) throws MemoryAccessException
      Parameters:
      asid - an address space ID
      address - a byte-offset into the asid
      Returns:
      true if this memory address is shared between processes
      Throws:
      MemoryAccessException - if the memory cannot be read
    • getBytesAt

      public int getBytesAt(int asid, long address, byte[] buffer) throws MemoryAccessException
      Parameters:
      asid - an address space ID
      address - a byte-offset into the asid
      buffer - a byte array to receive the bytes
      Returns:
      the number of bytes read into buffer
      Throws:
      MemoryAccessException - if the memory cannot be read