org.openjdk.jol.util
Class VMSupport
java.lang.Object
org.openjdk.jol.util.VMSupport
public class VMSupport
- extends Object
VM support doorway.
Contains all the special tricks and methods to poll VM about it's secrets.
- Author:
- Aleksey Shipilev
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
U
public static final sun.misc.Unsafe U
VM_NAME
public static final String VM_NAME
ADDRESS_SIZE
public static final int ADDRESS_SIZE
OBJ_ALIGNMENT
public static final int OBJ_ALIGNMENT
OBJ_HEADER_SIZE
public static final int OBJ_HEADER_SIZE
USE_COMPRESSED_REFS
public static final boolean USE_COMPRESSED_REFS
COMPRESSED_REF_SHIFT
public static final int COMPRESSED_REF_SHIFT
REF_SIZE
public static final int REF_SIZE
BOOLEAN_SIZE
public static final int BOOLEAN_SIZE
BYTE_SIZE
public static final int BYTE_SIZE
CHAR_SIZE
public static final int CHAR_SIZE
DOUBLE_SIZE
public static final int DOUBLE_SIZE
FLOAT_SIZE
public static final int FLOAT_SIZE
INT_SIZE
public static final int INT_SIZE
LONG_SIZE
public static final int LONG_SIZE
SHORT_SIZE
public static final int SHORT_SIZE
VMSupport
public VMSupport()
toNativeAddress
public static long toNativeAddress(long address)
align
public static int align(int addr)
align
public static int align(int addr,
int align)
vmDetails
public static String vmDetails()
addressOf
public static long addressOf(Object o)
addressOf
public static long addressOf(Object o,
int oopSize)
premain
public static void premain(String agentArgs,
Instrumentation inst)
tryExactObjectSize
public static VMSupport.SizeInfo tryExactObjectSize(Object o,
ClassLayout layout)
sizeOf
public static int sizeOf(Object o)
safeToString
public static String safeToString(Object o)
- Produces the toString string, only calling toString() on known types,
which do not mutate the instance.
- Parameters:
o
- object to process
- Returns:
- toString
Copyright © 2013. All Rights Reserved.