|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.utility.HeaderByte
public class HeaderByte
This class provides generic support for operations over the GC byte within each object's header word. Specifically this class manages global status bits which cut across policies (for example the logging bit).
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.
Field Summary | |
---|---|
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 Summary | |
---|---|
HeaderByte()
|
Method Summary | |
---|---|
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)
|
static byte |
setBuildTimeGCByte(Address object,
ObjectReference typeRef,
int size)
Perform any required initialization of the GC portion of the header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public HeaderByte()
Method Detail |
---|
public static byte setBuildTimeGCByte(Address object, ObjectReference typeRef, int size)
object
- the Address representing the storage to be initializedtypeRef
- the type reference for the instance being createdsize
- the number of bytes allocated by the GC system for
this object.
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 question
true
if the object in question needs to be logged (remembered).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |