Class ImageAddressSpace
java.lang.Object
com.ibm.dtfj.image.j9.ImageAddressSpace
- All Implemented Interfaces:
ImageAddressSpace
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProcess
(ImageProcess proc) int
This 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.byte
readByteAtIndex
(long address) int
readIntAtIndex
(long address) long
readLongAtIndex
(long address) readPointerAtIndex
(long address) short
readShortAtIndex
(long address) toString()
If available, show the ASID as toString.
-
Constructor Details
-
ImageAddressSpace
-
-
Method Details
-
getByteOrder
Description copied from interface:ImageAddressSpace
Return the byte order of this address space.- Specified by:
getByteOrder
in interfaceImageAddressSpace
- Returns:
- the byte order of this address space
-
getCurrentProcess
Description copied from interface:ImageAddressSpace
Get the process within this address space that caused the image to be created.- Specified by:
getCurrentProcess
in 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:ImageAddressSpace
Get the set of processes within the address space.- Specified by:
getProcesses
in interfaceImageAddressSpace
- Returns:
- an iterator which provides all of the processes within a given address space.
- See Also:
-
getPointer
Description copied from interface:ImageAddressSpace
A factory method for creating pointers into this address space.- Specified by:
getPointer
in 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:ImageAddressSpace
Get the raw memory in the address space.- Specified by:
getImageSections
in 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
-
getID
Description copied from interface:ImageAddressSpace
Gets the system wide identifier for the address space- Specified by:
getID
in interfaceImageAddressSpace
- Returns:
- address space ID
- Throws:
DataUnavailable
CorruptDataException
-
getProperties
Description copied from interface:ImageAddressSpace
Gets the OS specific properties for this address space.- Specified by:
getProperties
in interfaceImageAddressSpace
- Returns:
- a set of OS specific properties
-