public final class NativeImageHeap extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NativeImageHeap.HeapPartition
The native image heap comes in partitions.
|
static class |
NativeImageHeap.ObjectInfo |
protected static class |
NativeImageHeap.Phase |
Modifier and Type | Field and Description |
---|---|
protected Map<Object,NativeImageHeap.ObjectInfo> |
objects
A Map from objects at construction-time to native image objects.
|
Constructor and Description |
---|
NativeImageHeap(com.oracle.graal.pointsto.meta.AnalysisUniverse aUniverse,
HostedUniverse universe,
HostedMetaAccess metaAccess) |
Modifier and Type | Method and Description |
---|---|
void |
addInitialObjects() |
void |
addObject(Object original,
boolean immutableFromParent,
Object reason)
If necessary, add an object to the model of the native image heap.
|
void |
addTrailingObjects() |
protected HostedMetaAccess |
getMetaAccess() |
NativeImageHeap.ObjectInfo |
getObjectInfo(Object obj) |
protected HostedUniverse |
getUniverse() |
void |
registerAsImmutable(Object object) |
void |
writeHeap(org.graalvm.compiler.debug.DebugContext debug,
RelocatableBuffer roBuffer,
RelocatableBuffer rwBuffer)
Write the model of the native image heap to the RelocatableBuffers that represent the native
image.
|
protected final Map<Object,NativeImageHeap.ObjectInfo> objects
public NativeImageHeap(com.oracle.graal.pointsto.meta.AnalysisUniverse aUniverse, HostedUniverse universe, HostedMetaAccess metaAccess)
public void addInitialObjects()
public void addTrailingObjects()
public void registerAsImmutable(Object object)
public void addObject(Object original, boolean immutableFromParent, Object reason)
public void writeHeap(org.graalvm.compiler.debug.DebugContext debug, RelocatableBuffer roBuffer, RelocatableBuffer rwBuffer)
public NativeImageHeap.ObjectInfo getObjectInfo(Object obj)
protected HostedUniverse getUniverse()
protected HostedMetaAccess getMetaAccess()