public class HeaderByte extends Object
The general pattern for use of the GC byte is that the high order bits successively reserved for global use, as necessary. Any GC policy may use those bits that are not reserved for global use.
Modifier and Type | Field and Description |
---|---|
static boolean |
NEEDS_UNLOGGED_BIT |
private static int |
TOTAL_BITS |
static byte |
UNLOGGED_BIT |
private static int |
UNLOGGED_BIT_NUMBER |
static int |
USED_GLOBAL_BITS |
Constructor and Description |
---|
HeaderByte() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isUnlogged(ObjectReference object)
Return
true if the specified object needs to be logged. |
static void |
markAsLogged(ObjectReference object)
Mark an object as logged.
|
static void |
markAsUnlogged(ObjectReference object) |
private static final int TOTAL_BITS
public static final boolean NEEDS_UNLOGGED_BIT
private static final int UNLOGGED_BIT_NUMBER
public static final byte UNLOGGED_BIT
public static final int USED_GLOBAL_BITS
public HeaderByte()
public static void markAsUnlogged(ObjectReference object)
public static void markAsLogged(ObjectReference object)
object
- The object to be marked as loggedpublic static boolean isUnlogged(ObjectReference object)
true
if the specified object needs to be logged.object
- The object in questiontrue
if the object in question needs to be logged (remembered).