Machine-readable versions of this page. Markdown: https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/index-all.md . Index of every page (llms.txt): https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/llms.txt . The whole reference in one Markdown file: https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/llms-full.txt . Declaration contracts: https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/contracts.ndjson . The API model as JSON (apidocs/1): https://graalvm.elide.help/25.6.0-elide.4/api/nativeimage/api.json .
IAARCH64interface in org.graalvm.nativeimage Supported architecture: ARMv8 64-bit.
IAccessConditioninterface in org.graalvm.nativeimage.dynamicaccess A condition that must be satisfied to register elements for dynamic access (i.e., reflection, serialization, JNI access, resource access, and foreign access at run time).
add(Class, T)method in ImageSingletons Add a singleton to the registry.
addResource(Module, String)method in RuntimeResourceAccess Make Java resource resourcePath from module available at run time.
addResource(Module, String, byte[])method in RuntimeResourceAccess Inject a Java resource at resourcePath in module with the specified resourceContent.
addResourceBundle(Module, String)method in RuntimeResourceAccess Make Java ResourceBundle that is specified by a bundleName from module module available at run time.
addResourceBundle(Module, String, Locale[])method in RuntimeResourceAccess Make Java ResourceBundle that is specified by a baseBundleName and locales from module module available at run time.
addressOf(int)method in CCharPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(int)method in CCharPointerPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(int)method in CDoublePointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(int)method in CFloatPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(int)method in CIntPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(int)method in CIntPointerPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(int)method in CLongPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(int)method in CShortPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(int)method in WordPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(SignedWord)method in CCharPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(SignedWord)method in CCharPointerPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(SignedWord)method in CDoublePointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(SignedWord)method in CFloatPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(SignedWord)method in CIntPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(SignedWord)method in CIntPointerPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(SignedWord)method in CLongPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(SignedWord)method in CShortPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOf(SignedWord)method in WordPointer Computes the address of the array element with the specified index, treating the pointer as an array of the C type.
addressOfArrayElement(int)method in PinnedObject Returns a pointer to the array element with the specified index.
addressOfObject()method in PinnedObject Returns the raw address of the pinned object.
afterRegistration(Feature.AfterRegistrationAccess)method in Feature Handler for initializations after all features have been registered and all options have been parsed; but before any initializations for the static analysis have happened.
@Aliasannotation interface in com.oracle.svm.core.annotate Mechanism for referring to fields and methods otherwise inaccessible due to Java language access control rules.
@AllowNarrowingCastannotation interface in org.graalvm.nativeimage.c.struct Allows a method annotated with CField to have a value type that is narrower (smaller number of bits) than the C type.
@AllowWideningCastannotation interface in org.graalvm.nativeimage.c.struct Allows a method annotated with CField to have a value type that is wider (larger number of bits) than the C type.
IAMD64interface in org.graalvm.nativeimage Supported architecture: x86 64-bit.
IANDROIDinterface in org.graalvm.nativeimage Supported operating system: Android.
CANDROID_AARCH64class in org.graalvm.nativeimage Supported leaf platform: Android on AArch64 64-bit.
ANDROID_AARCH64()constructor in Platform.ANDROID_AARCH64 Instantiates a marker instance of this platform.
@AnnotateOriginalannotation interface in com.oracle.svm.core.annotate This annotation allows to add additional annotations to existing methods but keep the implementation as it is.
CAnnotationAccessclass in org.graalvm.nativeimage This class provides same-VM annotation access for AnnotatedElements owned by the current context while trying to prevent, at image build time, side-effecting changes that impact the analysis results.
appendArgument(String)method in Isolates.CreateIsolateParameters.Builder Appends an isolate argument.
ArrayBaseOffsetenum constant in RecomputeFieldValue.Kind The int or long field is set to the offset of the first array element of the array class declClass, as it would be computed by Unsafe.arrayBaseOffset(Class).
ArrayIndexScaleenum constant in RecomputeFieldValue.Kind The int or long field is set to the element size array class declClass, as it would be computed by Unsafe.arrayIndexScale(Class).
AtomicFieldUpdaterOffsetenum constant in RecomputeFieldValue.Kind Special support for field offsets used by java.util.concurrent.atomic.AtomicXxxFieldUpdater.
ATTACH_THREADenum constant in CEntryPoint.Builtin The annotated method attaches the current thread to an isolate.
auxiliaryImagePath(String)method in Isolates.CreateIsolateParameters.Builder Sets the file path to an auxiliary image which should be loaded in addition to the main image, or null if no such image should be loaded.
auxiliaryImageReservedSpaceSize(UnsignedWord)method in Isolates.CreateIsolateParameters.Builder Sets the size in bytes of an address space to reserve for loading an auxiliary image in addition to the main image, or 0 if no space should be reserved.
build()method in Isolates.CreateIsolateParameters.Builder Produces the final CreateIsolateParameters with the values set previously by the builder methods.
Builder()constructor in Isolates.CreateIsolateParameters.Builder Creates a new builder with default values.
EBuiltinenum class in org.graalvm.nativeimage.c.function The built-in methods which can be aliased.
builtin()element in CEntryPoint Specifies that the annotated entry point method is an alias for a built-in function as provided by the C API.
C
calloc(int)method in UnmanagedMemory Allocates size bytes of unmanaged memory.
calloc(UnsignedWord)method in UnmanagedMemory Allocates size bytes of unmanaged memory.
@CBitfieldannotation interface in org.graalvm.nativeimage.c.struct Denotes a method as a bitfield access of a C struct.
ICCharPointerinterface in org.graalvm.nativeimage.c.type A pointer to a 8-bit C primitive value.
ICCharPointerHolderinterface in org.graalvm.nativeimage.c.type An auto-closable that holds a Java CharSequence as a null-terminated C char[] array.
ICCharPointerPointerinterface in org.graalvm.nativeimage.c.type A pointer to a pointer to a 8-bit C primitive value.
CCCharPointerPointerHolderabstract class in org.graalvm.nativeimage.c.type An auto-closable that holds a Java CharSequence[] array as a null-terminated array of null-terminated C char[]s.
@CConstannotation interface in org.graalvm.nativeimage.c.type Qualifies a C type as const in an entry-point method signature.
@CConstantannotation interface in org.graalvm.nativeimage.c.constant Denotes a method as a C constant value.
@CContextannotation interface in org.graalvm.nativeimage.c Defines the context for most other annotations of the C interface: the C header files that need to be imported, the C macros that need to be defined to properly configure these headers, and additional flags that should be passed to the C compiler when analyzing the definitions.
ICDoublePointerinterface in org.graalvm.nativeimage.c.type A pointer to a C primitive 'double' value.
@CEntryPointannotation interface in org.graalvm.nativeimage.c.function Annotates a method that is a VM entry point.
CCEntryPointLiteralclass in org.graalvm.nativeimage.c.function A function pointer to an entry point method that can be, for example, handed out to C code so that C code can call back into Java code.
@CEnumannotation interface in org.graalvm.nativeimage.c.constant Annotation to import a C enumeration to Java.
@CEnumConstantannotation interface in org.graalvm.nativeimage.c.constant Provides additional properties for a field (i.e., an enumeration value) of Java enumeration annotated with CEnum.
@CEnumLookupannotation interface in org.graalvm.nativeimage.c.constant Annotation for a method that returns the Java enumeration object for a given C integer value.
@CEnumValueannotation interface in org.graalvm.nativeimage.c.constant Annotation for a method that returns the C integer value for a Java enumeration object.
@CFieldannotation interface in org.graalvm.nativeimage.c.struct Denotes a method as a field access of a C struct.
@CFieldAddressannotation interface in org.graalvm.nativeimage.c.struct Denotes a method as a field address computation of a C struct.
@CFieldOffsetannotation interface in org.graalvm.nativeimage.c.struct Denotes a method as a field offset access of a C struct.
ICFloatPointerinterface in org.graalvm.nativeimage.c.type A pointer to a C primitive 'float' value.
@CFunctionannotation interface in org.graalvm.nativeimage.c.function Denotes a native method that calls directly from Java to C, without following the JNI protocol.
ICFunctionPointerinterface in org.graalvm.nativeimage.c.function Base interface for all function pointers.
@CHeaderannotation interface in org.graalvm.nativeimage.c Defines the C header file for entry points enclosed by the annotated class or method.
ICIntPointerinterface in org.graalvm.nativeimage.c.type A pointer to a 32-bit C primitive value.
ICIntPointerPointerinterface in org.graalvm.nativeimage.c.type A pointer to a pointer to a 32-bit C primitive value.
className()element in TargetClass Specifies the substitutee class using a class-name string.
DETACH_THREADenum constant in CEntryPoint.Builtin The annotated method detaches the current thread, given as an IsolateThread, from an isolate.
detachThread(IsolateThread)method in Isolates Detaches the passed isolate thread from its isolate and discards any state or context that is associated with it.
IDirectivesinterface in org.graalvm.nativeimage.c Describes a C context.
documentation()element in CEntryPoint Method documentation to be included in the header file, as an array of lines.
dumpHeap(String, boolean)method in VMRuntime Dumps the heap to the outputFile file in the same format as the hprof heap dump.
exceptionHandler()element in CEntryPoint Provides an exception handler for all exceptions that are not handled explicitly by the entry point method.
exec(Path, String...)method in ProcessProperties Replaces the current process image with the process image specified by the given path invoked with the given args.
exec(Path, String[], Map)method in ProcessProperties Replaces the current process image with the process image specified by the given path invoked with the given arguments and environment.
F
fatalError()method in LogHandler Exit the VM because a fatal, non-recoverable error situation has been detected.
IFeatureinterface in org.graalvm.nativeimage.hosted Features allow clients to intercept the native image generation and run custom initialization code at various stages.
IFeatureAccessinterface in org.graalvm.nativeimage.hosted Access methods that are available for all feature methods.
FieldOffsetenum constant in RecomputeFieldValue.Kind The int or long field is set to the offset of the field named name() of the class declClass, as it would be computed by Unsafe.objectFieldOffset.
findClassByName(String)method in Feature.FeatureAccess Returns a class if it is present on the classpath.
flush()method in LogHandler Flush the log to its destination.
IForeignAccessinterface in org.graalvm.nativeimage.dynamicaccess This interface is used to register classes, methods, and fields for foreign access at run time.
free(PointerBase)method in UnmanagedMemory Frees unmanaged memory that was previously allocated using methods of this class.
FromAliasenum constant in RecomputeFieldValue.Kind The field is set to the value assigned to the Alias field.
G
get()method in CTypeConversion.CCharPointerHolder Returns the C pointer to the null-terminated C char[] array.
get()method in CTypeConversion.CCharPointerPointerHolder Returns the C pointer to pointers of null-terminated C char[] arrays.
get(Class)method in SizeOf Returns the size of the data structure pointed to by SystemJava pointer types.
get(Class)method in StackValue Reserves a block of memory for given CStruct class in the stack frame of the method that calls this intrinsic.
get(Class, String, Class)method in CConstant.ValueAccess Returns the value of a CConstant, i.e., the same value that calling the annotated method would return.
get(Enum, String)method in CConstant.ValueAccess Returns the value of a CEnum, i.e., the same value that calling the method annotated with CEnumValue would return.
get(int)method in StackValue Reserves a block of memory in the stack frame of the method that calls this intrinsic.
get(int, Class)method in StackValue Reserves a block of memory for array of given CStruct type in the stack frame of the method that calls this intrinsic.
get(int, int)method in StackValue Utility method that performs size arithmetic, otherwise equivalent to get(int).
get(ObjectHandle)method in ObjectHandles Extracts the object from a given handle.
get(String)method in RuntimeOptions Get the value of the option with the provided name.
getApplicationClassPath()method in Feature.FeatureAccess Returns the class path of the native image that is currently built.
getApplicationModulePath()method in Feature.FeatureAccess Returns the module path of the native image that is currently built.
getArchitecture()method in Platform Returns the string representing Platform's architecture name.
getArchitecture()method in Platform.AARCH64 Returns string representing AARCH64 architecture.
getArchitecture()method in Platform.AMD64 Returns string representing AMD64 architecture.
getArchitecture()method in Platform.RISCV64 Returns string representing RISCV64 architecture.
getArguments()method in Isolates.CreateIsolateParameters Returns the list of additional isolate arguments.
getArgumentVectorBlockSize()method in ProcessProperties If the running image is an executable the total size of the argument vector of the running process gets returned.
getArgumentVectorProgramName()method in ProcessProperties If the running image is an executable the program name that is stored in the argument vector of the running process gets returned.
getAsBoolean()method in CEntryPoint.AlwaysIncluded Returns true.
getAsBoolean()method in CEntryPoint.NotIncludedAutomatically Returns false.
getAuxiliaryImagePath()method in Isolates.CreateIsolateParameters Returns the file path to an auxiliary image which should be loaded in addition to the main image, or null if no such image should be loaded.
getAuxiliaryImageReservedSpaceSize()method in Isolates.CreateIsolateParameters Returns the size in bytes of an address space to reserve for loading an auxiliary image in addition to the main image, or 0 if no space should be reserved.
getCurrentThread()method in CurrentIsolate Returns the current thread in the current isolate.
getCurrentThread(Isolate)method in Isolates Given an isolate to which the current thread is attached, returns the address of the thread's associated isolate thread structure.
getExecutableName()method in ProcessProperties Return the canonicalized absolute pathname of the executable.
getForeignAccess()method in Feature.AfterRegistrationAccess Returns the instance of RuntimeForeignAccess used to register elements for foreign access at run time.
getFunctionPointer()method in CEntryPointLiteral Returns the function pointer to the entry point.
getGlobal()method in ObjectHandles A set of handles that is kept alive globally.
getHeaderFiles()method in CContext.Directives All header files used in this context.
getImagePath()method in Feature.AfterImageWriteAccess Returns the path to the created native-image file (includes the native-image file name).
getIsolate()method in CurrentIsolate Returns the current isolate.
getIsolate(IsolateThread)method in Isolates Given an isolate thread structure, determines to which isolate it belongs and returns the address of the isolate structure.
getJNIAccess()method in Feature.AfterRegistrationAccess Returns the instance of RuntimeJNIAccess used to register elements for JNI access at run time.
getLibraries()method in CContext.Directives Returns a collection of libraries.
getLibraryPaths()method in CContext.Directives Returns a list of library paths.
getMacroDefinitions()method in CContext.Directives Unparameterized macro-definitions.
getObject()method in PinnedObject Returns the Object that is the referent of this PinnedObject.
getObjectFile(String)method in ProcessProperties Return the path of the object file defining the symbol specified as a String containing the symbol name.
getOptions()method in CContext.Directives Returns options to be passed to the C compiler when processing the directives.
getOS()method in Platform Returns the string representing Platform's OS name.
getOS()method in Platform.ANDROID Returns string representing ANDROID OS.
getOS()method in Platform.IOS Returns string representing iOS OS.
getOS()method in Platform.LINUX Returns string representing LINUX OS.
getOS()method in Platform.MACOS Returns string representing MACOS OS.
getProcessID()method in ProcessProperties Get the Process ID of the process executing the image.
getProcessID(Process)method in ProcessProperties Get the Process ID of the given process object.
getProtectionDomain()method in Isolates.CreateIsolateParameters Returns the memory protection domain to be used for an isolate.
getReflectiveAccess()method in Feature.AfterRegistrationAccess Returns the instance of RuntimeReflection used to register elements for reflection at run time.
getRequiredFeatures()method in Feature Returns the list of features that this feature depends on.
getReservedAddressSpaceSize()method in Isolates.CreateIsolateParameters Returns the size in bytes for the reserved virtual address space of the new isolate.
getURL()method in Feature A URL to documentation or the sources of the feature.
H
IHeaderinterface in org.graalvm.nativeimage.c Container for Header file properties.
help()method in RuntimeOptions.Descriptor Returns a human-readable description on how to use the option.
CHOSTED_ONLYclass in org.graalvm.nativeimage Marker for elements (types, methods, or fields) that are only visible during native image generation and cannot be used at run time, regardless of the actual platform.
I
CImageInfoclass in org.graalvm.nativeimage Utility class to retrieve information about the context in which code gets executed.
CImageSingletonsclass in org.graalvm.nativeimage A key-value store of singleton objects.
include()element in CEntryPoint If the supplier returns true, this entry point is added automatically when building a shared library.
includedIn(Class)method in Platform Returns true if the current platform (the platform that the native image is built for) is included in the provided platform group.
includeInLookup()element in CEnumConstant Specifies whether the annotated enumeration value is returned by the lookup method annotated with CEnumLookup.
inImageBuildtimeCode()method in ImageInfo Returns true if (at the time of the call) code is executing in the context of image building (e.g.
inImageCode()method in ImageInfo Returns true if (at the time of the call) code is executing in the context of image building or during image runtime, else false.
inImageRuntimeCode()method in ImageInfo Returns true if (at the time of the call) code is executing at image runtime.
initialize()method in VMRuntime Initializes the VM: Runs all startup hooks that were registered during image building.
initializeAtBuildTime(Class...)method in RuntimeClassInitialization Registers the provided classes as eagerly initialized during image-build time.
initializeAtBuildTime(String...)method in RuntimeClassInitialization Registers all classes in provided packages as eagerly initialized during image-build time.
initializeAtRunTime(Class...)method in RuntimeClassInitialization Registers the provided classes, and all of their subclasses, for class initialization at runtime.
initializeAtRunTime(String...)method in RuntimeClassInitialization Registers all classes in provided packages, and all of their subclasses, for class initialization at runtime.
@Injectannotation interface in com.oracle.svm.core.annotate Injects the annotated field into the TargetClass.
@InjectAccessorsannotation interface in com.oracle.svm.core.annotate Inject accessor methods for the field denoted using an Alias annotation.
innerClass()element in TargetClass Specifies the suffix of the substitutee class name when it is an inner class.
@InvokeCFunctionPointerannotation interface in org.graalvm.nativeimage.c.function Annotation for an invocation method defined in a sub-interface of CFunctionPointer.
IIOSinterface in org.graalvm.nativeimage Supported operating system: iOS.
CIOS_AARCH64class in org.graalvm.nativeimage Supported leaf platform: iOS on AArch 64-bit.
IOS_AARCH64()constructor in Platform.IOS_AARCH64 Instantiates a marker instance of this platform.
CIOS_AMD64class in org.graalvm.nativeimage Supported leaf platform: iOS on x86 64-bit.
IOS_AMD64()constructor in Platform.IOS_AMD64 Instantiates a marker instance of this platform.
isAlive(long)method in ProcessProperties Tests whether the process represented by the given Process ID is alive.
isAvailable()method in FieldValueTransformer Returns true when the value for this custom computation is available.
isExecutable()method in ImageInfo Returns true if the image is built as an executable.
isFinal()element in RecomputeFieldValue Treat the value as final, to enforce constant folding already during static analysis.
isIncomplete()element in CStruct If marked as incomplete, we will not try to determine the size of the struct.
isInConfiguration()method in CContext.Directives This method is called immediately after the constructor, to check whether the context is part of the configuration or not.
IIsolateinterface in org.graalvm.nativeimage Pointer to the runtime data structure for an isolate.
@IsolateContextannotation interface in org.graalvm.nativeimage.c.function Designates an Isolate parameter to use as the execution context.
⚡︎IsolateExceptionexception in org.graalvm.nativeimage An exception thrown in the context of managing isolates.
IsolateException(String)constructor in Isolates.IsolateException Constructs a new exception with the specified detail message.
CIsolatesclass in org.graalvm.nativeimage Support for the creation, access to, and tear-down of isolates.
IIsolateThreadinterface in org.graalvm.nativeimage Pointer to the runtime data structure for a thread.
@IsolateThreadContextannotation interface in org.graalvm.nativeimage.c.function Designates an IsolateThread parameter to use as the execution context.
isReachable(Class)method in Feature.QueryReachabilityAccess Returns true if the static analysis determined that the provided class is reachable at run time.
isReachable(Executable)method in Feature.QueryReachabilityAccess Returns true if the static analysis determined that the provided method is reachable at run time.
isReachable(Field)method in Feature.QueryReachabilityAccess Returns true if the static analysis determined that the provided field is reachable at run time.
isSharedLibrary()method in ImageInfo Returns true if the image is build as a shared library.
isSupported()method in PinnedObject Whether pinned objects are supported in the selected Native Image backend.
J
IJNIAccessinterface in org.graalvm.nativeimage.dynamicaccess This interface is used to register classes, methods, and fields for JNI access at runtime.
K
@KeepOriginalannotation interface in com.oracle.svm.core.annotate If a class annotated with TargetClass is also annotated with Substitute, all non-substituted methods in that class are by default treated as deleted.
ILogHandlerinterface in org.graalvm.nativeimage Low-level handler for log messages of native images.
lookup(Class)method in ImageSingletons Lookup a singleton in the registry.
M
IMACOSinterface in org.graalvm.nativeimage Supported operating system: MacOS.
CMACOS_AARCH64class in org.graalvm.nativeimage Supported leaf platform: MacOS on AArch 64-bit.
MACOS_AARCH64()constructor in Platform.MACOS_AARCH64 Instantiates a marker instance of this platform.
CMACOS_AMD64class in org.graalvm.nativeimage Supported leaf platform: MacOS on x86 64-bit.
MACOS_AMD64()constructor in Platform.MACOS_AMD64 Instantiates a marker instance of this platform.
malloc(int)method in UnmanagedMemory Allocates size bytes of unmanaged memory.
malloc(UnsignedWord)method in UnmanagedMemory Allocates size bytes of unmanaged memory.
Manualenum constant in RecomputeFieldValue.Kind Marker value that the field is intercepted by some manual logic.
⚡︎MissingForeignRegistrationErrorexception in org.graalvm.nativeimage This error is thrown when a query through the Foreign Function and Memory (FFM) API did not get appropriately registered at build-time.
NewInstanceenum constant in RecomputeFieldValue.Kind The object field is set to a instance of declClass created by calling the default constructor.
NewInstanceWhenNotNullenum constant in RecomputeFieldValue.Kind The object field is set to a instance of declClass created by calling the default constructor when the target field value is not null.
NO_BUILTINenum constant in CEntryPoint.Builtin The annotated method is not an alias for a built-in method.
NO_DOMAINfield in Isolates.ProtectionDomain Do not use a protection domain.
NO_TRANSITIONenum constant in CFunction.Transition No prologue and epilogue is emitted.
onlyWith()element in TargetClass Substitute only if all provided predicates are true (default: unconditional substitution that is always included).
onlyWith()element in TargetElement Substitute only if all provided predicates are true (default: unconditional substitution that is always included).
onRegistration(Feature.OnRegistrationAccess)method in Feature Handler for initialization that must happen as soon as this feature is registered, before its required features are processed.
IPinnedObjectinterface in org.graalvm.nativeimage Holder for a pinned object, such that the object doesn't move until the pin is removed.
IPlatforminterface in org.graalvm.nativeimage Root of the interface hierarchy for architectures, OS, and supported combinations of them.
PLATFORM_PROPERTY_NAMEfield in Platform The system property name that specifies the fully qualified name of the Platform implementation class that should be used.
@Platformsannotation interface in org.graalvm.nativeimage Restricts the annotated element (type, method, or field) to the specified Platform groups.
CProcessPropertiesclass in org.graalvm.nativeimage Utility class to get and set properties of the OS process at run time.
PROPERTY_IMAGE_CODE_KEYfield in ImageInfo Holds the string that is the name of the system property providing information about the context in which code is currently executing.
@RawFieldannotation interface in org.graalvm.nativeimage.c.struct Denotes a method as a field access of a structured C memory.
@RawFieldAddressannotation interface in org.graalvm.nativeimage.c.struct Denotes a method as a field address computation of a RawStructure.
@RawFieldOffsetannotation interface in org.graalvm.nativeimage.c.struct Denotes a method as a field offset access of a RawStructure.
@RawPointerToannotation interface in org.graalvm.nativeimage.c.struct Denotes a Java interface that is a pointer to a RawStructure.
@RawStructureannotation interface in org.graalvm.nativeimage.c.struct Denotes Java interface that represents C memory, but without a C struct definition.
reachableMethodOverrides(Executable)method in Feature.QueryReachabilityAccess Returns all method overrides of the given {param baseMethod} that the static analysis determined to be reachable at run time (including the {param baseMethod} itself).
reachableSubtypes(Class)method in Feature.QueryReachabilityAccess Returns all subtypes of the given {param baseClass} that the static analysis determined to be reachable at run time (including the {param baseClass} itself).
read()method in CCharPointer Reads the value at the pointer address.
read()method in CCharPointerPointer Reads the value at the pointer address.
read()method in CDoublePointer Reads the value at the pointer address.
read()method in CFloatPointer Reads the value at the pointer address.
read()method in CIntPointer Reads the value at the pointer address.
read()method in CIntPointerPointer Reads the value at the pointer address.
read()method in CLongPointer Reads the value at the pointer address.
read()method in CShortPointer Reads the value at the pointer address.
read()method in WordPointer Reads the value at the pointer address.
read(int)method in CCharPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(int)method in CCharPointerPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(int)method in CDoublePointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(int)method in CFloatPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(int)method in CIntPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(int)method in CIntPointerPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(int)method in CLongPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(int)method in CShortPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(int)method in WordPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(SignedWord)method in CCharPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(SignedWord)method in CCharPointerPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(SignedWord)method in CDoublePointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(SignedWord)method in CFloatPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(SignedWord)method in CIntPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(SignedWord)method in CIntPointerPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(SignedWord)method in CLongPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(SignedWord)method in CShortPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
read(SignedWord)method in WordPointer Reads the value of the array element with the specified index, treating the pointer as an array of the C type.
realloc(T, UnsignedWord)method in UnmanagedMemory Changes the size of the provided unmanaged memory to size bytes of unmanaged memory.
IReflectiveAccessinterface in org.graalvm.nativeimage.dynamicaccess This interface is used to register classes, methods, and fields for use with the java.lang.reflect API at run time, and for serialization at run time.
register(AccessCondition, Class...)method in JNIAccess Registers the provided classes for JNI access at run time, if the condition is satisfied.
register(AccessCondition, Class...)method in ReflectiveAccess Registers the provided classes for reflection at run time, if the condition is satisfied.
register(AccessCondition, Executable...)method in ReflectiveAccess Registers the provided executables (methods and constructors) for reflective invocation at run time, if the condition is satisfied.
register(AccessCondition, Field...)method in JNIAccess Registers the provided fields for JNI access at run time, if the condition is satisfied.
register(AccessCondition, Field...)method in ReflectiveAccess Registers the provided fields for reflective access at run time, if the condition is satisfied.
register(AccessCondition, Module, String)method in ResourceAccess Registers resources matching the specified glob in the provided module for run-time access, if the condition is satisfied.
register(AccessCondition, String)method in ResourceAccess Registers resources matching the specified glob from the classpath for run-time access, if the condition is satisfied.
register(Class...)method in RuntimeJNIAccess Makes the provided classes available for JNI access at run time.
register(Class...)method in RuntimeProxyCreation Enables registering specifications of Proxy classes during the image build so that matching proxy objects can be created at runtime.
register(Class...)method in RuntimeReflection Makes the provided classes available for reflection at run time.
register(Class...)method in RuntimeSerialization Makes the provided classes available for serialization at runtime.
register(Executable...)method in RuntimeJNIAccess Makes the provided methods available for JNI access at run time.
register(Executable...)method in RuntimeReflection Makes the provided methods available for reflection at run time.
register(Field...)method in RuntimeJNIAccess Makes the provided fields available for JNI access at run time.
register(Field...)method in RuntimeReflection Makes the provided fields available for reflection at run time.
register(String, String)method in RuntimeSystemProperties Define a system property setting for image runtime.
registerAsAccessed(Field)method in Feature.BeforeAnalysisAccess Registers the provided field as accesses, i.e., the static analysis assumes the field is used even if there are no explicit reads or writes in the bytecodes.
registerAsImmutable(Object)method in Feature.CompilationAccess Hint to the native image generator that the given object is immutable at runtime, i.e., can be placed in a read-only section of the native image heap.
registerAsInHeap(Class)method in Feature.BeforeAnalysisAccess Registers the provided type as instantiated, i.e., the static analysis assumes that instances of this type exist at run time even if there is no explicit instantiation in the bytecodes.
registerAsQueried(Executable...)method in RuntimeReflection Makes the provided methods available for reflection queries at run time.
registerAsUnsafeAccessed(Field)method in Feature.BeforeAnalysisAccess Registers the provided field as written or read by Unsafe, i.e., the static analysis merges together all values of unsafe accessed fields of a specific type.
registerAsUnsafeAllocated(Class)method in Feature.BeforeAnalysisAccess Registers the provided type as allocatable without running a constructor, via Unsafe.allocateInstance or via the JNI function AllocObject.
registerAsUsed(Class)method in Feature.BeforeAnalysisAccess Registers the provided type a used, i.e., metadata for the type is put into the native image.
registerBuildTimeBootstrapCondy(Executable)method in Feature.DuringSetupAccess Registers a method that is allowed to be executed at build time if called as the bootstrap method for a constantdynamic, in which case each call site outputted will be constant-folded.
registerBuildTimeBootstrapIndy(Executable)method in Feature.DuringSetupAccess Registers a method that is allowed to be executed at build time if called as the bootstrap method for an invokedynamic, in which case each call site outputted will be constant-folded.
registerForDowncall(AccessCondition, Object, Object...)method in ForeignAccess Registers the provided function descriptor and options pair at image build time for downcalls into foreign code, if the condition is satisfied.
registerForDowncall(Object, Object...)method in RuntimeForeignAccess Registers the provided function descriptor and options pair at image build time for downcalls into foreign code.
registerForUpcall(AccessCondition, Object, Object...)method in ForeignAccess Registers the provided function descriptor and options pair at image build time for upcalls from foreign code, if the condition is satisfied.
registerForUpcall(Object, Object...)method in RuntimeForeignAccess Registers the provided function descriptor and options pair at image build time for upcalls from foreign code.
registerLambdaCapturingClass(Class)method in RuntimeSerialization Makes a class available for serialization at runtime that is created for the lambda expressions (a class that has a $deserializeLambda$ method) specified by the lambdaCapturingClass.
registerMethodOverrideReachabilityHandler(BiConsumer, Executable)method in Feature.BeforeAnalysisAccess Registers a callback that is invoked once during analysis for each time a method that overrides the specified {param baseMethod} is determined to be reachable at run time.
registerObjectReachabilityHandler(Consumer, Class)method in Feature.DuringSetupAccess Register a callback that is executed when an object of type clazz, or any of its subtypes, is marked as reachable during heap scanning.
registerProxy(AccessCondition, Class...)method in ReflectiveAccess Registers a Proxy class in the system classloader that implements the specified interfaces, if the condition is satisfied.
registerProxyClass(Class...)method in RuntimeSerialization Makes a dynamic proxy class (class that extends Proxy) available for serialization at runtime that is specified by the given interfaces the proxy class implements.
registerWithTargetConstructorClass(Class, Class)method in RuntimeSerializationdeprecated Makes the provided class available for serialization at runtime but uses the provided customTargetConstructorClazz for deserialization.
IRelocatedPointerinterface in org.graalvm.nativeimage.c.function A pointer which is relocated when the native image is loaded at runtime.
requireAnalysisIteration()method in Feature.DuringAnalysisAccess Notifies the static analysis that changes are made that enforce a new iteration of the analysis.
requireStatic()element in CLibrary Specifies if static linking is required.
reservedAddressSpaceSize(UnsignedWord)method in Isolates.CreateIsolateParameters.Builder Sets the size in bytes for the reserved virtual address space of the new isolate.
Resetenum constant in RecomputeFieldValue.Kind The field is reset to the default value (null, 0, false).
IResourceAccessinterface in org.graalvm.nativeimage.dynamicaccess This interface is used to register Java resources and ResourceBundles that should be accessible at run time.
IRISCV64interface in org.graalvm.nativeimage Supported architecture: RISC-V 64-bit.
CRuntimeClassInitializationclass in org.graalvm.nativeimage.hosted This class provides methods that can be called during native-image building to configure class initialization behavior.
CRuntimeJNIAccessclass in org.graalvm.nativeimage.hosted This class provides methods that can be called during native image generation to register classes, methods, and fields for JNI access at run time.
CRuntimeOptionsclass in org.graalvm.nativeimage Used for manipulating options at run time.
CRuntimeProxyCreationclass in org.graalvm.nativeimage.hosted This class can be used to make creating dynamic proxy classes at run time valid.
CRuntimeReflectionclass in org.graalvm.nativeimage.hosted This class provides methods that can be called during native image generation to register classes, methods, and fields for reflection at run time.
CRuntimeResourceAccessclass in org.graalvm.nativeimage.hosted This class can be used to register Java resources and ResourceBundles that should be accessible at run time.
CRuntimeSerializationclass in org.graalvm.nativeimage.hosted This class provides methods that can be called before and during analysis, to register classes for serialization at image runtime.
CRuntimeSystemPropertiesclass in org.graalvm.nativeimage.hosted This class provides methods that can be called during native image generation to define system property setting for image runtime.
S
set(String, Object)method in RuntimeOptions Set the value of the option with the provided name to the new value.
setArgumentVectorProgramName(String)method in ProcessProperties If the running image is an executable the program name that is stored in the argument vector of the running process gets replaced with the given name.
shutdown()method in VMRuntime Shuts down the VM: Runs all shutdown hooks and waits for all finalization to complete.
CSizeOfclass in org.graalvm.nativeimage.c.struct Contains static methods that provide access to the size of dereferenced SystemJava pointer types (i.e.
sizeProvider()element in RawStructure Class of a function that computes the size of the structure.
CStackValueclass in org.graalvm.nativeimage Contains static methods for memory allocation in the stack frame.
StaticFieldBaseenum constant in RecomputeFieldValue.Kind The static field base Object as it would be computed by Unsafe.staticFieldBase(Field).
@Substituteannotation interface in com.oracle.svm.core.annotate When used to annotate a method, it indicates that a method declaration is intended to be a substitute for a method declaration in another class.
SymbolAndHeaderenum constant in CEntryPoint.Publish Create a symbol for the entry point method in the native image, and if building a shared library image, also include a C declaration in the generated C header file.
SymbolOnlyenum constant in CEntryPoint.Publish Create a symbol for the entry point method in the native image.
T
@TargetClassannotation interface in com.oracle.svm.core.annotate A class annotated with this annotation denotes a class that modifies methods of fields of another class, called the "original" class.
CThreadingclass in org.graalvm.nativeimage Functionality related to execution in threads.
throwException(Throwable)method in Threading.RecurringCallbackAccess Throws an exception from the recurring callback to the code that is regularly executing in the thread.
TO_NATIVEenum constant in CFunction.Transition The thread state is transitioned from Java to C, and the Java parts of the stack are made walkable.
toBoolean(int)method in CTypeConversion Converts a C int containing boolean values into a Java boolean.
toBoolean(PointerBase)method in CTypeConversion Converts a C pointer into a Java boolean.
toCBoolean(boolean)method in CTypeConversion Converts a Java boolean into a C int containing boolean values.
toCBytes(byte[])method in CTypeConversion Provides access to a C pointer for the provided Java byte array.
toCString(CharSequence)method in CTypeConversion Provides access to a C pointer for the provided Java String, encoded with the default charset.
toCString(CharSequence, Charset, …)method in CTypeConversion Copies the javaString into the buffer as a 0 terminated C string encoded with the charset character set.
toCStrings(CharSequence[])method in CTypeConversion Provides access to C pointers for the provided Java Strings, encoded with the default charset.
toJavaString(CCharPointer)method in CTypeConversion Decodes a 0 terminated C char* to a Java string using the platform's default charset.
transform(Object, Object)method in FieldValueTransformer Transforms the field value for the provided receiver.
ETransitionenum class in org.graalvm.nativeimage.c.function Describes the thread state transition performed when the C function is invoked.
transition()element in CFunction The Java-to-C thread transition code used when calling the function.
transition()element in InvokeCFunctionPointer The Java-to-C thread transition code used when calling the function.
TranslateFieldOffsetenum constant in RecomputeFieldValue.Kind The field offset stored in this int or long field is updated.
typeReached(Class)method in AccessCondition Creates the typeReached condition that is satisfied when the type is reached at run time.
U
unconditional()method in AccessCondition Returns a condition that is always satisfied.
@UniqueLocationIdentityannotation interface in org.graalvm.nativeimage.c.struct A CField also annotated with this annotation gets a unique LocationIdentity assigned, i.e., reads and writes do not interfere with reads and writes to any other field and are optimized without regarding other fields.
CUnmanagedMemoryclass in org.graalvm.nativeimage Contains static methods that allow allocate/free of unmanaged memory, i.e., memory that is not under the control of the garbage collector.
value()element in Platforms Restricts the annotated element (type, method, or field) to the specified Platform groups.
value()element in RawPointerTo The value type, as a reference to a Java interface that is annotated with RawStructure or RawPointerTo.
value()element in TargetClass Specifies the substitutee class using a class literal.
CValueAccessclass in org.graalvm.nativeimage.c.constant Allows access to the value of a CConstant during image generation.
valueOf(String)method in CEntryPoint.Builtin Returns the enum constant with the given name.
valueOf(String)method in CEntryPoint.Publish Returns the enum constant with the given name.
valueOf(String)method in CFunction.Transition Returns the enum constant with the given name.
valueOf(String)method in RecomputeFieldValue.Kind Returns the enum constant with the given name.
values()method in CEntryPoint.Builtin Returns the enum constants in declaration order.
values()method in CEntryPoint.Publish Returns the enum constants in declaration order.
values()method in CFunction.Transition Returns the enum constants in declaration order.
values()method in RecomputeFieldValue.Kind Returns the enum constants in declaration order.
valueType()method in RuntimeOptions.Descriptor Returns the option type of this key.
CVMRuntimeclass in org.graalvm.nativeimage Used for doing VM runtime operations.
IVoidPointerinterface in org.graalvm.nativeimage.c.type A void* pointer to an opaque C value of an unknown type, without any methods to read or write.
W
waitForProcessExit(long)method in ProcessProperties Wait for process termination and return its exit status.
IWINDOWSinterface in org.graalvm.nativeimage Supported operating system: Windows.
CWINDOWS_AARCH64class in org.graalvm.nativeimage Supported leaf platform: Windows on AArch 64-bit.
WINDOWS_AARCH64()constructor in Platform.WINDOWS_AARCH64 Instantiates a marker instance of this platform.
CWINDOWS_AMD64class in org.graalvm.nativeimage Supported leaf platform: Windows on x86 64-bit.
WINDOWS_AMD64()constructor in Platform.WINDOWS_AMD64 Instantiates a marker instance of this platform.
IWordPointerinterface in org.graalvm.nativeimage.c.type A untyped C pointer to any machine-word-sized value, e.g., a pointer to another pointer or a pointer to a UnsignedWord or SignedWord value.
write(byte)method in CCharPointer Writes the value at the pointer address.
write(CCharPointer)method in CCharPointerPointer Writes the value at the pointer address.
write(CIntPointer)method in CIntPointerPointer Writes the value at the pointer address.
write(double)method in CDoublePointer Writes the value at the pointer address.
write(float)method in CFloatPointer Writes the value at the pointer address.
write(int)method in CIntPointer Writes the value at the pointer address.
write(int, byte)method in CCharPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(int, CCharPointer)method in CCharPointerPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(int, CIntPointer)method in CIntPointerPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(int, double)method in CDoublePointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(int, float)method in CFloatPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(int, int)method in CIntPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(int, long)method in CLongPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(int, short)method in CShortPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(int, WordBase)method in WordPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(long)method in CLongPointer Writes the value at the pointer address.
write(short)method in CShortPointer Writes the value at the pointer address.
write(SignedWord, byte)method in CCharPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(SignedWord, CCharPointer)method in CCharPointerPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(SignedWord, CIntPointer)method in CIntPointerPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(SignedWord, double)method in CDoublePointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(SignedWord, float)method in CFloatPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(SignedWord, int)method in CIntPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(SignedWord, long)method in CLongPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(SignedWord, short)method in CShortPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(SignedWord, WordBase)method in WordPointer Writes the value of the array element with the specified index, treating the pointer as an array of the C type.
write(WordBase)method in WordPointer Writes the value at the pointer address.
writePreamble(PrintWriter)method in CHeader.Header Writes a preamble after the dependencies and before the list of included methods.