public abstract class AbstractBootImage extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBootImage.NativeImageKind |
| Modifier and Type | Field and Description |
|---|---|
protected NativeImageCodeCache |
codeCache |
protected List<HostedMethod> |
entryPoints |
protected NativeImageHeap |
heap |
protected ClassLoader |
imageClassLoader |
protected AbstractBootImage.NativeImageKind |
kind |
protected HostedMetaAccess |
metaAccess |
protected NativeLibraries |
nativeLibs |
protected int |
resultingImageSize |
protected HostedUniverse |
universe |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBootImage(AbstractBootImage.NativeImageKind k,
HostedUniverse universe,
HostedMetaAccess metaAccess,
NativeLibraries nativeLibs,
NativeImageHeap heap,
NativeImageCodeCache codeCache,
List<HostedMethod> entryPoints,
ClassLoader imageClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
build(org.graalvm.compiler.debug.DebugContext debug)
Build the image.
|
static AbstractBootImage |
create(AbstractBootImage.NativeImageKind k,
HostedUniverse universe,
HostedMetaAccess metaAccess,
NativeLibraries nativeLibs,
NativeImageHeap heap,
NativeImageCodeCache codeCache,
List<HostedMethod> entryPoints,
HostedMethod mainEntryPoint,
ClassLoader classLoader) |
AbstractBootImage.NativeImageKind |
getBootImageKind() |
NativeImageCodeCache |
getCodeCache() |
NativeImageHeap |
getHeap() |
int |
getImageSize() |
AbstractBootImage.NativeImageKind |
getKind() |
NativeLibraries |
getNativeLibs() |
abstract com.oracle.objectfile.ObjectFile |
getOrCreateDebugObjectFile() |
abstract com.oracle.objectfile.ObjectFile.Section |
getTextSection()
Returns the ObjectFile.Section within the image, if any, whose vaddr defines the image's base
vaddr.
|
abstract String[] |
makeLaunchCommand(AbstractBootImage.NativeImageKind k,
String imageName,
Path binPath,
Path workPath,
Method method) |
boolean |
requiresCustomDebugRelocation() |
abstract Path |
write(org.graalvm.compiler.debug.DebugContext debug,
Path outputDirectory,
Path tempDirectory,
String imageName,
FeatureImpl.BeforeImageWriteAccessImpl config)
Write the image to the named file.
|
protected final HostedMetaAccess metaAccess
protected final HostedUniverse universe
protected final NativeLibraries nativeLibs
protected final NativeImageHeap heap
protected final ClassLoader imageClassLoader
protected final NativeImageCodeCache codeCache
protected final List<HostedMethod> entryPoints
protected int resultingImageSize
protected final AbstractBootImage.NativeImageKind kind
protected AbstractBootImage(AbstractBootImage.NativeImageKind k, HostedUniverse universe, HostedMetaAccess metaAccess, NativeLibraries nativeLibs, NativeImageHeap heap, NativeImageCodeCache codeCache, List<HostedMethod> entryPoints, ClassLoader imageClassLoader)
public AbstractBootImage.NativeImageKind getBootImageKind()
public int getImageSize()
public NativeLibraries getNativeLibs()
public abstract void build(org.graalvm.compiler.debug.DebugContext debug)
AbstractBootImage.write(org.graalvm.compiler.debug.DebugContext, java.nio.file.Path, java.nio.file.Path, java.lang.String, com.oracle.svm.hosted.FeatureImpl.BeforeImageWriteAccessImpl). It
typically finalizes content of the object. It does not build debug information.public abstract Path write(org.graalvm.compiler.debug.DebugContext debug, Path outputDirectory, Path tempDirectory, String imageName, FeatureImpl.BeforeImageWriteAccessImpl config)
AbstractBootImage.getOrCreateDebugObjectFile().
If AbstractBootImage.getOrCreateDebugObjectFile() is not called, no debug information is written.public abstract com.oracle.objectfile.ObjectFile.Section getTextSection()
public static AbstractBootImage create(AbstractBootImage.NativeImageKind k, HostedUniverse universe, HostedMetaAccess metaAccess, NativeLibraries nativeLibs, NativeImageHeap heap, NativeImageCodeCache codeCache, List<HostedMethod> entryPoints, HostedMethod mainEntryPoint, ClassLoader classLoader)
public abstract String[] makeLaunchCommand(AbstractBootImage.NativeImageKind k, String imageName, Path binPath, Path workPath, Method method)
public NativeImageCodeCache getCodeCache()
public NativeImageHeap getHeap()
public abstract com.oracle.objectfile.ObjectFile getOrCreateDebugObjectFile()
public boolean requiresCustomDebugRelocation()
public AbstractBootImage.NativeImageKind getKind()