public class VMSupport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VMSupport.SizeInfo |
Modifier and Type | Field and Description |
---|---|
static int |
ADDRESS_SIZE |
static int |
BOOLEAN_SIZE |
static int |
BYTE_SIZE |
static int |
CHAR_SIZE |
static long |
COMPRESSED_KLASS_BASE |
static int |
COMPRESSED_KLASS_SHIFT |
static long |
COMPRESSED_OOP_BASE |
static int |
COMPRESSED_OOP_SHIFT |
static long |
COMPRESSED_REF_BASE |
static int |
COMPRESSED_REF_SHIFT |
static int |
DOUBLE_SIZE |
static int |
FLOAT_SIZE |
static int |
INT_SIZE |
static int |
KLASS_OOP_SIZE |
static int |
LONG_SIZE |
static int |
OBJ_ALIGNMENT |
static int |
OBJ_HEADER_SIZE |
static int |
OOP_SIZE |
static int |
REF_SIZE |
static int |
SHORT_SIZE |
static sun.misc.Unsafe |
U |
static boolean |
USE_COMPRESSED_KLASS |
static boolean |
USE_COMPRESSED_OOP |
static boolean |
USE_COMPRESSED_REFS |
static String |
VM_NAME |
Constructor and Description |
---|
VMSupport() |
Modifier and Type | Method and Description |
---|---|
static long |
addressOf(Object o) |
static long |
addressOf(Object o,
int oopSize) |
static int |
align(int addr) |
static String |
safeToString(Object o)
Produces the toString string, only calling toString() on known types,
which do not mutate the instance.
|
static int |
sizeOf(Object o) |
static long |
toJvmAddress(long address) |
static long |
toJvmKlassAddress(long address) |
static long |
toJvmOopAddress(long address) |
static long |
toNativeAddress(long address) |
static long |
toNativeKlassAddress(long address) |
static long |
toNativeOopAddress(long address) |
static VMSupport.SizeInfo |
tryExactObjectSize(Object o,
ClassLayout layout) |
static String |
vmDetails() |
public static final sun.misc.Unsafe U
public static final String VM_NAME
public static final int ADDRESS_SIZE
public static final int REF_SIZE
public static final int OBJ_ALIGNMENT
public static final int OBJ_HEADER_SIZE
public static final boolean USE_COMPRESSED_REFS
public static final long COMPRESSED_REF_BASE
public static final int COMPRESSED_REF_SHIFT
public static final int OOP_SIZE
public static final boolean USE_COMPRESSED_OOP
public static final long COMPRESSED_OOP_BASE
public static final int COMPRESSED_OOP_SHIFT
public static final int KLASS_OOP_SIZE
public static final boolean USE_COMPRESSED_KLASS
public static final long COMPRESSED_KLASS_BASE
public static final int COMPRESSED_KLASS_SHIFT
public static final int BOOLEAN_SIZE
public static final int BYTE_SIZE
public static final int CHAR_SIZE
public static final int DOUBLE_SIZE
public static final int FLOAT_SIZE
public static final int INT_SIZE
public static final int LONG_SIZE
public static final int SHORT_SIZE
public static long toNativeAddress(long address)
public static long toJvmAddress(long address)
public static long toNativeOopAddress(long address)
public static long toJvmOopAddress(long address)
public static long toNativeKlassAddress(long address)
public static long toJvmKlassAddress(long address)
public static int align(int addr)
public static String vmDetails()
public static long addressOf(Object o)
public static long addressOf(Object o, int oopSize)
public static VMSupport.SizeInfo tryExactObjectSize(Object o, ClassLayout layout)
public static int sizeOf(Object o)
Copyright © 2015. All Rights Reserved.