- All Superinterfaces:
ImageSection
- All Known Implementing Classes:
DTFJGenericJavaRuntimeMemorySection
,DTFJJavaRuntimeMemorySectionBase
,DTFJMemoryTagRuntimeMemorySection
Represents a native memory range allocated by the Java Runtime.
- Since:
- 1.5
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Type code for memory that was allocated, and freed, by the Java runtime on the native heap using malloc() or similar.static final int
Type code for memory allocated on the native heap via an API such as malloc().static final int
Type code for memory allocated for memory mapping files through an API like mmap().static final int
Type code for shared memory sections.static final int
Type code for anonymous memory mappings / virtual allocations. -
Method Summary
Modifier and TypeMethodDescriptionint
Get memory allocation type code.Returns string describing the code that allocated this memory section.Returns memory category this section was allocated under.Methods declared in interface com.ibm.dtfj.image.ImageSection
getBaseAddress, getName, getProperties, getSize, isExecutable, isReadOnly, isShared
-
Field Details
-
ALLOCATION_TYPE_MALLOC_LIVE
static final int ALLOCATION_TYPE_MALLOC_LIVEType code for memory allocated on the native heap via an API such as malloc(). Covers malloc'd memory that hasn't been freed- See Also:
-
ALLOCATION_TYPE_MALLOC_FREED
static final int ALLOCATION_TYPE_MALLOC_FREEDType code for memory that was allocated, and freed, by the Java runtime on the native heap using malloc() or similar.- See Also:
-
ALLOCATION_TYPE_MEMORY_MAPPED_FILE
static final int ALLOCATION_TYPE_MEMORY_MAPPED_FILEType code for memory allocated for memory mapping files through an API like mmap().- See Also:
-
ALLOCATION_TYPE_VIRTUAL_ALLOC
static final int ALLOCATION_TYPE_VIRTUAL_ALLOCType code for anonymous memory mappings / virtual allocations.- See Also:
-
ALLOCATION_TYPE_SHARED_MEMORY
static final int ALLOCATION_TYPE_SHARED_MEMORYType code for shared memory sections.- See Also:
-
-
Method Details
-
getAllocator
Returns string describing the code that allocated this memory section.- Returns:
- Allocator string.
- Throws:
CorruptDataException
DataUnavailable
-
getMemoryCategory
Returns memory category this section was allocated under.- Returns:
- Memory category.
- Throws:
CorruptDataException
DataUnavailable
-
getAllocationType
int getAllocationType()Get memory allocation type code.- Returns:
- Type code.
-