public class HotSpotGraalServices extends Object
| Constructor and Description |
|---|
HotSpotGraalServices() |
| Modifier and Type | Method and Description |
|---|---|
static CompilationContext |
enterGlobalCompilationContext()
Enters the global context.
|
static void |
exit(int status,
HotSpotJVMCIRuntime runtime)
Exits Graal's runtime.
|
static SpeculationLog |
newHotSpotSpeculationLog(long cachedFailedSpeculationsAddress) |
static CompilationContext |
openLocalCompilationContext(Object description)
Opens a local context that upon closing, will release foreign object references encapsulated
by
JavaConstants created in the context. |
public static CompilationContext enterGlobalCompilationContext()
JavaConstants created in the global context
are only subject to reclamation once the JavaConstant wrapper dies.null if the current runtime does not support remote object references or if
this thread is currently in the global contextpublic static CompilationContext openLocalCompilationContext(Object description)
JavaConstants created in the context.description - an non-null object whose Object.toString() value describes the
context being openednull if the current runtime does not support remote object referencespublic static void exit(int status,
HotSpotJVMCIRuntime runtime)
System.exit(int) in HotSpot's runtime if possible
otherwise calls System.exit(int) in the current runtime.
This exists so that the HotSpot VM can be exited from within libgraal.public static SpeculationLog newHotSpotSpeculationLog(long cachedFailedSpeculationsAddress)