public class GraalHotSpotVMConfigAccess extends Object
HotSpotVMConfigAccess
to check when retrieving VM
configuration values that they are only present in the VM iff expected to be.Modifier and Type | Field and Description |
---|---|
protected HotSpotVMConfigAccess |
access |
static boolean |
IS_OPENJDK |
static int |
JDK |
static boolean |
JDK_PRERELEASE |
static int |
JDK_UPDATE |
static boolean |
JVMCI |
protected static JVMCIVersionCheck.Version |
JVMCI_19_3_b03 |
protected static JVMCIVersionCheck.Version |
JVMCI_19_3_b04 |
protected static JVMCIVersionCheck.Version |
JVMCI_19_3_b07 |
protected static JVMCIVersionCheck.Version |
JVMCI_20_0_b03 |
protected static JVMCIVersionCheck.Version |
JVMCI_20_1_b01 |
protected static JVMCIVersionCheck.Version |
JVMCI_20_2_b01 |
protected static JVMCIVersionCheck.Version |
JVMCI_20_2_b04 |
static JVMCIVersionCheck.Version |
JVMCI_20_3_b04 |
protected static JVMCIVersionCheck.Version |
JVMCI_21_1_b02 |
protected static JVMCIVersionCheck.Version |
JVMCI_22_1_b01 |
static JVMCIVersionCheck.Version |
JVMCI_VERSION |
static Set<String> |
KNOWN_ARCHITECTURES |
static Set<String> |
KNOWN_OS_NAMES |
String |
osArch
Name for current CPU architecture.
|
String |
osName
Name for current OS.
|
Modifier and Type | Method and Description |
---|---|
long |
getAddress(String name) |
long |
getAddress(String name,
Long notPresent,
boolean expectPresent) |
<T> T |
getConstant(String name,
Class<T> type) |
<T> T |
getConstant(String name,
Class<T> type,
T notPresent,
boolean expectPresent) |
long |
getFieldAddress(String name,
String cppType) |
<T> T |
getFieldOffset(String name,
Class<T> type) |
<T> T |
getFieldOffset(String name,
Class<T> type,
String cppType) |
<T> T |
getFieldOffset(String name,
Class<T> type,
String cppType,
T notPresent,
boolean expectPresent) |
<T> T |
getFieldValue(String name,
Class<T> type) |
<T> T |
getFieldValue(String name,
Class<T> type,
String cppType) |
<T> T |
getFieldValue(String name,
Class<T> type,
String cppType,
T notPresent,
boolean expectPresent) |
<T> T |
getFlag(String name,
Class<T> type) |
<T> T |
getFlag(String name,
Class<T> type,
T notPresent,
boolean expectPresent) |
protected static String |
getProperty(String name) |
protected static String |
getProperty(String name,
String def) |
HotSpotVMConfigStore |
getStore() |
static boolean |
jvmciGE(JVMCIVersionCheck.Version v) |
protected void |
reportErrors() |
<T> T |
verifyConstant(String name,
Class<T> type,
T expect)
Verifies that if the constant described by
name and type is defined by the
VM, it has the value expect . |
protected final HotSpotVMConfigAccess access
public final String osName
public final String osArch
protected static final JVMCIVersionCheck.Version JVMCI_22_1_b01
protected static final JVMCIVersionCheck.Version JVMCI_21_1_b02
public static final JVMCIVersionCheck.Version JVMCI_20_3_b04
protected static final JVMCIVersionCheck.Version JVMCI_20_2_b04
protected static final JVMCIVersionCheck.Version JVMCI_20_2_b01
protected static final JVMCIVersionCheck.Version JVMCI_20_1_b01
protected static final JVMCIVersionCheck.Version JVMCI_20_0_b03
protected static final JVMCIVersionCheck.Version JVMCI_19_3_b03
protected static final JVMCIVersionCheck.Version JVMCI_19_3_b04
protected static final JVMCIVersionCheck.Version JVMCI_19_3_b07
public static final int JDK
public static final int JDK_UPDATE
public static final boolean IS_OPENJDK
public static final JVMCIVersionCheck.Version JVMCI_VERSION
public static final boolean JVMCI
public static final boolean JDK_PRERELEASE
public HotSpotVMConfigStore getStore()
public static boolean jvmciGE(JVMCIVersionCheck.Version v)
protected void reportErrors()
public long getAddress(String name, Long notPresent, boolean expectPresent)
HotSpotVMConfigAccess.getAddress(String, Long)
public long getAddress(String name)
HotSpotVMConfigAccess.getAddress(String)
public <T> T getConstant(String name, Class<T> type, T notPresent, boolean expectPresent)
HotSpotVMConfigAccess.getConstant(String, Class, Object)
public <T> T verifyConstant(String name, Class<T> type, T expect)
name
and type
is defined by the
VM, it has the value expect
.expect
public <T> T getConstant(String name, Class<T> type)
HotSpotVMConfigAccess.getConstant(String, Class)
public <T> T getFieldOffset(String name, Class<T> type, String cppType, T notPresent, boolean expectPresent)
HotSpotVMConfigAccess.getFieldOffset(String, Class, String, Object)
public <T> T getFieldOffset(String name, Class<T> type, String cppType)
HotSpotVMConfigAccess.getFieldOffset(String, Class, String)
public <T> T getFieldOffset(String name, Class<T> type)
HotSpotVMConfigAccess.getFieldOffset(String, Class)
public long getFieldAddress(String name, String cppType)
HotSpotVMConfigAccess.getFieldAddress(String, String)
public <T> T getFieldValue(String name, Class<T> type, String cppType, T notPresent, boolean expectPresent)
HotSpotVMConfigAccess.getFieldValue(String, Class, String, Object)
public <T> T getFieldValue(String name, Class<T> type, String cppType)
HotSpotVMConfigAccess.getFieldValue(String, Class, String)
public <T> T getFieldValue(String name, Class<T> type)
HotSpotVMConfigAccess.getFieldValue(String, Class)
public <T> T getFlag(String name, Class<T> type)
HotSpotVMConfigAccess.getFlag(String, Class)