-
- All Known Subinterfaces:
JavaRuntimeMemorySection
public interface ImageSectionRepresents a contiguous range of memory in an address space.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImagePointergetBaseAddress()Gets the base address (the lowest) of memory in this section.StringgetName()Gets the name of this section.PropertiesgetProperties()Get the OS-specific properties for this section.longgetSize()Gets the size of the memory section.booleanisExecutable()Tests executable permission on memory section.booleanisReadOnly()Tests read permission on memory section.booleanisShared()Tests shared permission on memory section.
-
-
-
Method Detail
-
getBaseAddress
ImagePointer getBaseAddress()
Gets the base address (the lowest) of memory in this section.- Returns:
- Base address pointer.
-
getSize
long getSize()
Gets the size of the memory section.- Returns:
- Size of section in bytes.
-
getName
String getName()
Gets the name of this section. Some memory sections are named. For example, the executable data in a module is typically called ".text". For memory sections without a specific name, a placeholder string will be returned. This method will never return null.- Returns:
- non-null name String.
-
isExecutable
boolean isExecutable() throws DataUnavailableTests executable permission on memory section.- Returns:
- true if the memory pages in this section are marked executable. False otherwise.
- Throws:
DataUnavailable
-
isReadOnly
boolean isReadOnly() throws DataUnavailableTests read permission on memory section.- Returns:
- true if the memory pages in this section are marked read-only. False otherwise.
- Throws:
DataUnavailable
-
isShared
boolean isShared() throws DataUnavailableTests shared permission on memory section.- Returns:
- true if this section is shared between processes. False otherwise.
- Throws:
DataUnavailable
-
getProperties
Properties getProperties()
Get the OS-specific properties for this section.- Returns:
- a table of OS-specific properties for this section.
Values which are commonly available include
- "readable" -- whether the memory section can be read from
- "writable" -- whether the memory section can be written to
- "executable" -- whether data in the memory section can be executed
- Since:
- 1.11
-
-