public class CodeInfoTable extends Object
ahead-of-time compiled code in the native image
or code compiled at runtime
.
Users of this class must take special care because code can be invalidated at arbitrary times and
their metadata can be freed, see notes on CodeInfoAccess
.
Modifier and Type | Class and Description |
---|---|
static class |
CodeInfoTable.Options |
Constructor and Description |
---|
CodeInfoTable() |
Modifier and Type | Method and Description |
---|---|
static ImageCodeInfo |
getImageCodeCache() |
static CodeInfo |
getImageCodeInfo() |
static RuntimeCodeCache |
getRuntimeCodeCache() |
static void |
invalidateInstalledCode(SubstrateInstalledCode installedCode) |
static void |
invalidateNonStackCodeAtSafepoint(CodeInfo info) |
static UntetheredCodeInfo |
lookupCodeInfo(org.graalvm.nativeimage.c.function.CodePointer ip) |
static CodeInfoQueryResult |
lookupCodeInfoQueryResult(CodeInfo info,
org.graalvm.nativeimage.c.function.CodePointer absoluteIP) |
static CodeInfoQueryResult |
lookupDeoptimizationEntrypoint(int deoptOffsetInImage,
long encodedBci) |
static SubstrateInstalledCode |
lookupInstalledCode(org.graalvm.nativeimage.c.function.CodePointer ip)
Retrieves the
InstalledCode that contains the provided instruction pointer. |
static void |
prepareImageCodeInfo() |
static void |
tearDown() |
static boolean |
visitObjectReferences(org.graalvm.word.Pointer sp,
org.graalvm.nativeimage.c.function.CodePointer ip,
CodeInfo info,
DeoptimizedFrame deoptimizedFrame,
ObjectReferenceVisitor visitor) |
public static ImageCodeInfo getImageCodeCache()
public static RuntimeCodeCache getRuntimeCodeCache()
public static void prepareImageCodeInfo()
public static CodeInfo getImageCodeInfo()
public static CodeInfoQueryResult lookupCodeInfoQueryResult(CodeInfo info, org.graalvm.nativeimage.c.function.CodePointer absoluteIP)
public static CodeInfoQueryResult lookupDeoptimizationEntrypoint(int deoptOffsetInImage, long encodedBci)
public static boolean visitObjectReferences(org.graalvm.word.Pointer sp, org.graalvm.nativeimage.c.function.CodePointer ip, CodeInfo info, DeoptimizedFrame deoptimizedFrame, ObjectReferenceVisitor visitor)
public static SubstrateInstalledCode lookupInstalledCode(org.graalvm.nativeimage.c.function.CodePointer ip)
InstalledCode
that contains the provided instruction pointer. Returns
null
if the instruction pointer is not within a runtime compile method.public static void invalidateInstalledCode(SubstrateInstalledCode installedCode)
public static void invalidateNonStackCodeAtSafepoint(CodeInfo info)
public static UntetheredCodeInfo lookupCodeInfo(org.graalvm.nativeimage.c.function.CodePointer ip)
public static void tearDown()