public final class JavaHeaderConstants extends Object
ObjectModel
Modifier and Type | Field and Description |
---|---|
static boolean |
ADDRESS_BASED_HASHING
This object model supports two schemes for hashcodes:
(1) a 10 bit hash code in the object header
(2) use the address of the object as its hashcode.
|
static int |
ALIGNMENT_MASK |
static int |
ALIGNMENT_VALUE |
static boolean |
ALLOWS_LINEAR_SCAN
Can we perform a linear scan?
|
static Offset |
ARRAY_BASE_OFFSET
Offset of first element of an array
|
static int |
ARRAY_LENGTH_BYTES
Number of bytes used to store the array length.
|
static Offset |
ARRAY_LENGTH_OFFSET
Offset of array length from object reference
|
static boolean |
DYNAMIC_HASH_OFFSET
Does this object model place the hash for a hashed and moved object
after the data (at a dynamic offset)
|
static Offset |
FIELD_ZERO_OFFSET
Offset of the first field from object reference
|
static boolean |
FORWARDING_PTR_OVERLAYS_TIB
Does this object model use the same header word to contain
the TIB and a forwarding pointer?
|
static int |
GC_HEADER_BYTES
Number of bytes used by the GC Header
|
static Offset |
GC_HEADER_OFFSET
Offset of the garbage collection header from the object reference
|
static Word |
HASH_STATE_HASHED |
static Word |
HASH_STATE_HASHED_AND_MOVED |
static Word |
HASH_STATE_MASK |
static Word |
HASH_STATE_UNHASHED |
static int |
HASHCODE_BYTES |
static Offset |
HASHCODE_OFFSET |
static int |
JAVA_HEADER_BYTES
Number of bytes used by the Java Header
|
static Offset |
JAVA_HEADER_OFFSET
Offset of the Java header from the object reference
|
static int |
LOG_MIN_ALIGNMENT |
static int |
MISC_HEADER_BYTES
Number of bytes used by the miscellaneous header
|
static Offset |
MISC_HEADER_OFFSET
Offset of the miscellaneous header from the object reference
|
static int |
NUM_AVAILABLE_BITS
How many bits in the header are available for the GC and MISC headers?
|
static int |
OTHER_HEADER_BYTES
Size of GC and miscellaneous headers
|
static boolean |
SEGREGATE_ARRAYS_FOR_LINEAR_SCAN
Do we need to segregate arrays and scalars to do a linear scan?
|
static int |
STATUS_BYTES
Number of bytes indicating an object's status
|
static int |
TIB_BYTES
Number of bytes in object's TIB pointer
|
Constructor and Description |
---|
JavaHeaderConstants() |
public static final int TIB_BYTES
public static final int STATUS_BYTES
public static final int ALIGNMENT_MASK
public static final int ALIGNMENT_VALUE
public static final int LOG_MIN_ALIGNMENT
public static final int ARRAY_LENGTH_BYTES
public static final int JAVA_HEADER_BYTES
public static final int GC_HEADER_BYTES
public static final int MISC_HEADER_BYTES
public static final int OTHER_HEADER_BYTES
public static final Offset ARRAY_LENGTH_OFFSET
public static final Offset FIELD_ZERO_OFFSET
public static final Offset JAVA_HEADER_OFFSET
public static final Offset MISC_HEADER_OFFSET
public static final Offset GC_HEADER_OFFSET
public static final Offset ARRAY_BASE_OFFSET
public static final boolean ADDRESS_BASED_HASHING
public static final int NUM_AVAILABLE_BITS
public static final boolean FORWARDING_PTR_OVERLAYS_TIB
public static final boolean DYNAMIC_HASH_OFFSET
public static final boolean ALLOWS_LINEAR_SCAN
public static final boolean SEGREGATE_ARRAYS_FOR_LINEAR_SCAN
public static final Word HASH_STATE_UNHASHED
public static final Word HASH_STATE_HASHED
public static final Word HASH_STATE_HASHED_AND_MOVED
public static final Word HASH_STATE_MASK
public static final int HASHCODE_BYTES
public static final Offset HASHCODE_OFFSET
public JavaHeaderConstants()