public interface ImageHeapLayouter
ImageHeapPartition
s. Every object in the native image
heap, is assigned to a position within a ImageHeapPartition
.Modifier and Type | Method and Description |
---|---|
void |
assignObjectToPartition(ImageHeapObject info,
boolean immutable,
boolean references,
boolean relocatable)
Assign an object to the most suitable partition.
|
void |
assignPartitionRelativeOffsets(ImageHeap imageHeap)
Determines in which order image heap objects are placed in image heap partitions.
|
ImageHeapPartition[] |
getPartitions()
Returns all native image heap partitions.
|
void |
initialize() |
AbstractImageHeapLayouter.ImageHeapLayout |
layoutPartitionsAsContiguousHeap(String heapSectionName,
int pageSize)
This method places all heap partitions as one contiguous memory block in one section.
|
AbstractImageHeapLayouter.ImageHeapLayout |
layoutPartitionsAsSeparatedHeap(String roDataSectionName,
long roConstantsEndOffset,
String rwDataSectionName,
long rwGlobalsEndOffset)
This method layouts read-only and writable data as two separate memory blocks so that the
data can be put in different sections of the native image.
|
void initialize()
ImageHeapPartition[] getPartitions()
void assignObjectToPartition(ImageHeapObject info, boolean immutable, boolean references, boolean relocatable)
void assignPartitionRelativeOffsets(ImageHeap imageHeap)
AbstractImageHeapLayouter.ImageHeapLayout layoutPartitionsAsContiguousHeap(String heapSectionName, int pageSize)
AbstractImageHeapLayouter.ImageHeapLayout layoutPartitionsAsSeparatedHeap(String roDataSectionName, long roConstantsEndOffset, String rwDataSectionName, long rwGlobalsEndOffset)