public class VMSpec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
headerSize |
static int |
objectAlignment |
static int |
referenceSize |
Constructor and Description |
---|
VMSpec() |
Modifier and Type | Method and Description |
---|---|
static long |
addressOf(java.lang.Object o) |
static int |
align(int addr) |
static java.lang.String |
display() |
static java.lang.instrument.Instrumentation |
getInstrumentation() |
static sun.misc.Unsafe |
getUnsafe() |
static void |
premain(java.lang.String args,
java.lang.instrument.Instrumentation inst) |
static void |
printAddress(java.lang.Object o) |
static int |
sizeOfType(java.lang.Class<?> type) |
public static final int referenceSize
public static final int headerSize
public static final int objectAlignment
public static sun.misc.Unsafe getUnsafe()
public static java.lang.instrument.Instrumentation getInstrumentation() throws java.lang.Exception
java.lang.Exception
public static long addressOf(java.lang.Object o)
public static void printAddress(java.lang.Object o)
public static int align(int addr)
public static void premain(java.lang.String args, java.lang.instrument.Instrumentation inst)
public static int sizeOfType(java.lang.Class<?> type)
public static java.lang.String display()