Class DTFJGenericJavaRuntimeMemorySection
java.lang.Object
com.ibm.j9ddr.vm29.view.dtfj.java.DTFJJavaRuntimeMemorySectionBase
com.ibm.j9ddr.vm29.view.dtfj.java.DTFJGenericJavaRuntimeMemorySection
- All Implemented Interfaces:
ImageSection, JavaRuntimeMemorySection
JavaRuntimeMemorySection used for everything but J9MemTag sections.
- See Also:
-
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
ConstructorsConstructorDescriptionDTFJGenericJavaRuntimeMemorySection(long baseAddress, long size, int allocationType, String name, String allocator, JavaRuntimeMemoryCategory category) -
Method Summary
Modifier and TypeMethodDescriptionintGet memory allocation type code.Returns string describing the code that allocated this memory section.protected longReturns memory category this section was allocated under.getName()Gets the name of this section.longgetSize()Gets the size of the memory section.Methods declared in class DTFJJavaRuntimeMemorySectionBase
getBaseAddress, getProperties, isExecutable, isReadOnly, isSharedModifier and TypeMethodDescriptionGets the base address (the lowest) of memory in this section.Get 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.
-
Constructor Details
-
DTFJGenericJavaRuntimeMemorySection
public DTFJGenericJavaRuntimeMemorySection(long baseAddress, long size, int allocationType, String name, String allocator, JavaRuntimeMemoryCategory category)
-
-
Method Details
-
getBaseAddressAsLong
protected long getBaseAddressAsLong() -
getAllocationType
public int getAllocationType()Description copied from interface:JavaRuntimeMemorySectionGet memory allocation type code.- Returns:
- Type code.
-
getAllocator
Description copied from interface:JavaRuntimeMemorySectionReturns string describing the code that allocated this memory section.- Returns:
- Allocator string.
- Throws:
CorruptDataExceptionDataUnavailable
-
getMemoryCategory
Description copied from interface:JavaRuntimeMemorySectionReturns memory category this section was allocated under.- Returns:
- Memory category.
- Throws:
CorruptDataExceptionDataUnavailable
-
getName
Description copied from interface:ImageSectionGets 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.
-
getSize
public long getSize()Description copied from interface:ImageSectionGets the size of the memory section.- Returns:
- Size of section in bytes.
-