-
- All Superinterfaces:
ImageSection
public interface JavaRuntimeMemorySection extends ImageSection
Represents a native memory range allocated by the Java Runtime.- Since:
- 1.5
-
-
Field Summary
Fields Modifier and Type Field Description static intALLOCATION_TYPE_MALLOC_FREEDType code for memory that was allocated, and freed, by the Java runtime on the native heap using malloc() or similar.static intALLOCATION_TYPE_MALLOC_LIVEType code for memory allocated on the native heap via an API such as malloc().static intALLOCATION_TYPE_MEMORY_MAPPED_FILEType code for memory allocated for memory mapping files through an API like mmap().static intALLOCATION_TYPE_SHARED_MEMORYType code for shared memory sections.static intALLOCATION_TYPE_VIRTUAL_ALLOCType code for anonymous memory mappings / virtual allocations.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAllocationType()Get memory allocation type code.StringgetAllocator()Returns string describing the code that allocated this memory section.JavaRuntimeMemoryCategorygetMemoryCategory()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 Detail
-
ALLOCATION_TYPE_MALLOC_LIVE
static final int ALLOCATION_TYPE_MALLOC_LIVE
Type 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:
getAllocationType(), Constant Field Values
-
ALLOCATION_TYPE_MALLOC_FREED
static final int ALLOCATION_TYPE_MALLOC_FREED
Type code for memory that was allocated, and freed, by the Java runtime on the native heap using malloc() or similar.- See Also:
getAllocationType(), Constant Field Values
-
ALLOCATION_TYPE_MEMORY_MAPPED_FILE
static final int ALLOCATION_TYPE_MEMORY_MAPPED_FILE
Type code for memory allocated for memory mapping files through an API like mmap().- See Also:
getAllocationType(), Constant Field Values
-
ALLOCATION_TYPE_VIRTUAL_ALLOC
static final int ALLOCATION_TYPE_VIRTUAL_ALLOC
Type code for anonymous memory mappings / virtual allocations.- See Also:
getAllocationType(), Constant Field Values
-
ALLOCATION_TYPE_SHARED_MEMORY
static final int ALLOCATION_TYPE_SHARED_MEMORY
Type code for shared memory sections.- See Also:
getAllocationType(), Constant Field Values
-
-
Method Detail
-
getAllocator
String getAllocator() throws CorruptDataException, DataUnavailable
Returns string describing the code that allocated this memory section.- Returns:
- Allocator string.
- Throws:
CorruptDataExceptionDataUnavailable
-
getMemoryCategory
JavaRuntimeMemoryCategory getMemoryCategory() throws CorruptDataException, DataUnavailable
Returns memory category this section was allocated under.- Returns:
- Memory category.
- Throws:
CorruptDataExceptionDataUnavailable
-
getAllocationType
int getAllocationType()
Get memory allocation type code.- Returns:
- Type code.
-
-