Class DTFJJavaRuntimeMemorySectionBase
java.lang.Object
com.ibm.j9ddr.vm29.view.dtfj.java.DTFJJavaRuntimeMemorySectionBase
- All Implemented Interfaces:
ImageSection, JavaRuntimeMemorySection
- Direct Known Subclasses:
DTFJGenericJavaRuntimeMemorySection, DTFJMemoryTagRuntimeMemorySection
public abstract class DTFJJavaRuntimeMemorySectionBase
extends Object
implements JavaRuntimeMemorySection
-
Field Summary
Fields declared in interface JavaRuntimeMemorySection
ALLOCATION_TYPE_MALLOC_FREED, ALLOCATION_TYPE_MALLOC_LIVE, ALLOCATION_TYPE_MEMORY_MAPPED_FILE, ALLOCATION_TYPE_SHARED_MEMORY, ALLOCATION_TYPE_VIRTUAL_ALLOCModifier and TypeFieldDescriptionstatic final intType code for memory that was allocated, and freed, by the Java runtime on the native heap using malloc() or similar.static final intType code for memory allocated on the native heap via an API such as malloc().static final intType code for memory allocated for memory mapping files through an API like mmap().static final intType code for shared memory sections.static final intType code for anonymous memory mappings / virtual allocations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the base address (the lowest) of memory in this section.protected abstract longGet the OS-specific properties for this section.booleanTests executable permission on memory section.booleanTests read permission on memory section.booleanisShared()Tests shared permission on memory section.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface ImageSection
getName, getSizeMethods declared in interface JavaRuntimeMemorySection
getAllocationType, getAllocator, getMemoryCategoryModifier and TypeMethodDescriptionintGet memory allocation type code.Returns string describing the code that allocated this memory section.Returns memory category this section was allocated under.
-
Constructor Details
-
DTFJJavaRuntimeMemorySectionBase
public DTFJJavaRuntimeMemorySectionBase()
-
-
Method Details
-
getBaseAddressAsLong
protected abstract long getBaseAddressAsLong() -
getBaseAddress
Description copied from interface:ImageSectionGets the base address (the lowest) of memory in this section.- Specified by:
getBaseAddressin interfaceImageSection- Returns:
- Base address pointer.
-
isExecutable
Description copied from interface:ImageSectionTests executable permission on memory section.- Specified by:
isExecutablein interfaceImageSection- Returns:
- true if the memory pages in this section are marked executable. False otherwise.
- Throws:
DataUnavailable
-
isReadOnly
Description copied from interface:ImageSectionTests read permission on memory section.- Specified by:
isReadOnlyin interfaceImageSection- Returns:
- true if the memory pages in this section are marked read-only. False otherwise.
- Throws:
DataUnavailable
-
getProperties
Description copied from interface:ImageSectionGet the OS-specific properties for this section.- Specified by:
getPropertiesin interfaceImageSection- 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
-