Package org.graalvm.nativeimage
package org.graalvm.nativeimage
The GraalVM SDK Native Image API allows to customize the native image generation, i.e., the
ahead-of-time compilation of Java code to standalone executables. It also provides interfaces and
support classes that only work in the context of a native image.
- Since:
- 19.0
-
ClassDescriptionThis class provides methods to query annotation information on
AnnotatedElement
s while trying to prevent, at image build time, side-effecting changes that impact the analysis results.Utility methods that provide access to the current isolate.Utility class to retrieve information about the context in which code gets executed.A key-value store of singleton objects.Pointer to the runtime data structure for an isolate.Support for the creation, access to, and tear-down of isolates.Parameters for the creation of an isolate.Builder for aIsolates.CreateIsolateParameters
instance.An exception thrown in the context of managing isolates.Identifies a protection domain for an isolate.Pointer to the runtime data structure for a thread.Low-level handler for log messages of native images.This exception is thrown when a JNI query tries to access an element that was not registered for JNI access in the program.This exception is thrown when a reflective query (such asClass.getMethod(String, Class[])
) tries to access an element that was not registered for reflection in the program.The opaque representation of a handle to a Java object given out to unmanaged code.Manages a set ofObjectHandles
.Holder for a pinned object, such that the object doesn't move until the pin is removed.Root of the interface hierarchy for architectures, OS, and supported combinations of them.Supported architecture: ARMv8 64-bit.Supported architecture: x86 64-bit.Supported operating system: Android.Supported leaf platform: Android on AArch64 64-bit.Basis for all Apple operating systems (MacOS and iOS).Basis for all Apple operating systems on AMD64 (MACOS_AMD64 & IOS_AMD64).Basis for all Apple operating systems on AMD64 (MACOS_AMD64 & IOS_AMD64).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.Supported operating system: iOS.Supported leaf platform: iOS on AArch 64-bit.Supported leaf platform: iOS on x86 64-bit.Supported operating system: Linux.Supported leaf platform: Linux on AArch64 64-bit.Basis for all Linux operating systems on AARCH64 (LINUX_AARCH64 & ANDROID_AARCH64).Supported leaf platform: Linux on x86 64-bit.Basis for all Linux operating systems on AMD64 (LINUX_AMD64).Supported leaf platform: Linux on RISC-V 64-bit.Supported operating system: MacOS.Supported leaf platform: MacOS on AArch 64-bit.Supported leaf platform: MacOS on x86 64-bit.Supported architecture: RISC-V 64-bit.Supported operating system: Windows.Supported leaf platform: Windows on AArch 64-bit.Supported leaf platform: Windows on x86 64-bit.Restricts the annotated element (type, method, or field) to the specifiedPlatform
groups.Utility class to get and set properties of the OS process at run time.Used for manipulating options at run time.Contains static methods for memory allocation in the stack frame.Functionality related to execution in threads.Interface that a callback handler needs to implement.Provides methods that are available during the execution of aThreading.RecurringCallback
.Contains static methods that allow allocate/free of unmanaged memory, i.e., memory that is not under the control of the garbage collector.Used for doing VM runtime operations.