-
- All Superinterfaces:
ImageSection
- All Known Implementing Classes:
DTFJGenericJavaRuntimeMemorySection
,DTFJJavaRuntimeMemorySectionBase
,DTFJMemoryTagRuntimeMemorySection
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 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.static int
ALLOCATION_TYPE_MALLOC_LIVE
Type code for memory allocated on the native heap via an API such as malloc().static int
ALLOCATION_TYPE_MEMORY_MAPPED_FILE
Type code for memory allocated for memory mapping files through an API like mmap().static int
ALLOCATION_TYPE_SHARED_MEMORY
Type code for shared memory sections.static int
ALLOCATION_TYPE_VIRTUAL_ALLOC
Type code for anonymous memory mappings / virtual allocations.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAllocationType()
Get memory allocation type code.String
getAllocator()
Returns string describing the code that allocated this memory section.JavaRuntimeMemoryCategory
getMemoryCategory()
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:
CorruptDataException
DataUnavailable
-
getMemoryCategory
JavaRuntimeMemoryCategory getMemoryCategory() throws CorruptDataException, DataUnavailable
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.
-
-