Module openj9.dtfj
Class DTFJMemoryTagRuntimeMemorySection
java.lang.Object
com.ibm.j9ddr.vm29.view.dtfj.java.DTFJJavaRuntimeMemorySectionBase
com.ibm.j9ddr.vm29.view.dtfj.java.DTFJMemoryTagRuntimeMemorySection
- All Implemented Interfaces:
ImageSection,JavaRuntimeMemorySection
public class DTFJMemoryTagRuntimeMemorySection
extends DTFJJavaRuntimeMemorySectionBase
implements JavaRuntimeMemorySection
A JavaRuntimeMemorySection based on a J9MemTag malloced data chunk.
For all other memory tags @see DTFJGenericJavaRuntimeMemorySection
-
Field Summary
Fields declared in interface com.ibm.dtfj.java.JavaRuntimeMemorySection
ALLOCATION_TYPE_MALLOC_FREED, ALLOCATION_TYPE_MALLOC_LIVE, ALLOCATION_TYPE_MEMORY_MAPPED_FILE, ALLOCATION_TYPE_SHARED_MEMORY, ALLOCATION_TYPE_VIRTUAL_ALLOC -
Constructor Summary
ConstructorsConstructorDescriptionDTFJMemoryTagRuntimeMemorySection(JavaRuntime runtime, com.ibm.j9ddr.vm29.pointer.generated.J9MemTagPointer memoryTag) -
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 com.ibm.j9ddr.vm29.view.dtfj.java.DTFJJavaRuntimeMemorySectionBase
getBaseAddress, getProperties, isExecutable, isReadOnly, isSharedMethods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface com.ibm.dtfj.image.ImageSection
getBaseAddress, getProperties, isExecutable, isReadOnly, isShared
-
Constructor Details
-
DTFJMemoryTagRuntimeMemorySection
public DTFJMemoryTagRuntimeMemorySection(JavaRuntime runtime, com.ibm.j9ddr.vm29.pointer.generated.J9MemTagPointer memoryTag)
-
-
Method Details
-
getAllocationType
public int getAllocationType()Description copied from interface:JavaRuntimeMemorySectionGet memory allocation type code.- Specified by:
getAllocationTypein interfaceJavaRuntimeMemorySection- Returns:
- Type code.
-
getAllocator
Description copied from interface:JavaRuntimeMemorySectionReturns string describing the code that allocated this memory section.- Specified by:
getAllocatorin interfaceJavaRuntimeMemorySection- Returns:
- Allocator string.
- Throws:
CorruptDataExceptionDataUnavailable
-
getMemoryCategory
Description copied from interface:JavaRuntimeMemorySectionReturns memory category this section was allocated under.- Specified by:
getMemoryCategoryin interfaceJavaRuntimeMemorySection- 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.- Specified by:
getNamein interfaceImageSection- Returns:
- non-null name String.
-
getSize
public long getSize()Description copied from interface:ImageSectionGets the size of the memory section.- Specified by:
getSizein interfaceImageSection- Returns:
- Size of section in bytes.
-
getBaseAddressAsLong
protected long getBaseAddressAsLong()
-