final class HotSpotVMConfigVerifier extends jdk.internal.org.objectweb.asm.ClassVisitor
ClassVisitor that verifies HotSpotVMConfig does not access Unsafe from
any of its non-static, non-constructor methods. This ensures that a deserialized
HotSpotVMConfig object does not perform any unsafe reads on addresses that are only valid
in the context in which the object was serialized. Note that this does not catch cases where a
client uses an address stored in a HotSpotVMConfig field.| Modifier and Type | Field and Description |
|---|---|
(package private) int |
lineNo
Line number for error reporting.
|
(package private) String |
sourceFile
Source file context for error reporting.
|
| Constructor and Description |
|---|
HotSpotVMConfigVerifier() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
check() |
(package private) void |
error(String message) |
private static Class<?> |
resolve(String name) |
(package private) void |
verify(boolean condition,
String message) |
jdk.internal.org.objectweb.asm.MethodVisitor |
visitMethod(int access,
String name,
String d,
String signature,
String[] exceptions) |
void |
visitSource(String source,
String debug) |
String sourceFile
int lineNo
HotSpotVMConfigVerifier()
public static boolean check()
public void visitSource(String source, String debug)
visitSource in class jdk.internal.org.objectweb.asm.ClassVisitorpublic jdk.internal.org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String d, String signature, String[] exceptions)
visitMethod in class jdk.internal.org.objectweb.asm.ClassVisitor