java.lang.Object
com.ibm.dtfj.image.j9.ImageAddressSpace
- All Implemented Interfaces:
ImageAddressSpace
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProcess(ImageProcess proc) intThis shouldn't be added to the public API but it is required by the current hashCode algorithm in JavaObject.Return the byte order of this address space.Get the process within this address space that caused the image to be created.getID()Gets the system wide identifier for the address spaceGet the raw memory in the address space.getPointer(long address) A factory method for creating pointers into this address space.Get the set of processes within the address space.Gets the OS specific properties for this address space.bytereadByteAtIndex(long address) intreadIntAtIndex(long address) longreadLongAtIndex(long address) readPointerAtIndex(long address) shortreadShortAtIndex(long address) toString()If available, show the ASID as toString.
-
Constructor Details
-
ImageAddressSpace
-
-
Method Details
-
getByteOrder
Description copied from interface:ImageAddressSpaceReturn the byte order of this address space.- Specified by:
getByteOrderin interfaceImageAddressSpace- Returns:
- the byte order of this address space
-
getCurrentProcess
Description copied from interface:ImageAddressSpaceGet the process within this address space that caused the image to be created.- Specified by:
getCurrentProcessin interfaceImageAddressSpace- Returns:
- the process within this address space which caused the image to be created, if any. Return null if no individual process triggered the creation of the image.
-
getProcesses
Description copied from interface:ImageAddressSpaceGet the set of processes within the address space.- Specified by:
getProcessesin interfaceImageAddressSpace- Returns:
- an iterator which provides all of the processes within a given address space.
- See Also:
-
getPointer
Description copied from interface:ImageAddressSpaceA factory method for creating pointers into this address space.- Specified by:
getPointerin interfaceImageAddressSpace- Parameters:
address- the address to point to.- Returns:
- an ImagePointer for the specified address.
-
addProcess
-
readByteAtIndex
- Throws:
MemoryAccessException
-
readPointerAtIndex
- Throws:
MemoryAccessException
-
readIntAtIndex
- Throws:
MemoryAccessException
-
readLongAtIndex
- Throws:
MemoryAccessException
-
readShortAtIndex
- Throws:
MemoryAccessException
-
getImageSections
Description copied from interface:ImageAddressSpaceGet the raw memory in the address space.- Specified by:
getImageSectionsin interfaceImageAddressSpace- Returns:
- An iterator of all the ImageSections in the address. Their union will be the total process address space.
- See Also:
-
bytesPerPointer
public int bytesPerPointer()This shouldn't be added to the public API but it is required by the current hashCode algorithm in JavaObject. It may be possible to remove this method if that callsite is changed to a less hackish solution- Returns:
- the number of bytes in a pointer (4 or 8).
-
toString
If available, show the ASID as toString. Change this once getID() is available. -
getID
Description copied from interface:ImageAddressSpaceGets the system wide identifier for the address space- Specified by:
getIDin interfaceImageAddressSpace- Returns:
- address space ID
- Throws:
DataUnavailableCorruptDataException
-
getProperties
Description copied from interface:ImageAddressSpaceGets the OS specific properties for this address space.- Specified by:
getPropertiesin interfaceImageAddressSpace- Returns:
- a set of OS specific properties
-