|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.plan.Plan org.mmtk.plan.Simple org.mmtk.plan.StopTheWorld org.mmtk.plan.refcount.RCBase org.mmtk.plan.refcount.generational.GenRC
public class GenRC
This class implements the global state of a a simple reference counting collector.
Field Summary | |
---|---|
static int |
ALLOC_NURSERY
|
static int |
ALLOC_RC
|
static int |
NURSERY
|
static CopySpace |
nurserySpace
The nursery space is where all new objects are allocated by default |
Fields inherited from class org.mmtk.plan.refcount.RCBase |
---|
backupTrace, BT_CLOSURE, BUILD_FOR_GENRC, CC_BACKUP_TRACE, CC_ENABLED, ccForceFull, decPool, genRCCollection, genRCCollectionPhase, genRCRootClosurePhase, modPool, newRootPool, oldRootPool, performCycleCollection, PROCESS_DECBUFFER, PROCESS_MODBUFFER, PROCESS_NEWROOTBUFFER, PROCESS_OLDROOTBUFFER, rcloSpace, rcSpace, REF_COUNT, REF_COUNT_LOS, refCountCollection, refCountCollectionPhase, refCountRootClosurePhase, rootTrace |
Fields inherited from class org.mmtk.plan.StopTheWorld |
---|
postSanityPhase, preSanityPhase |
Constructor Summary | |
---|---|
GenRC()
|
Method Summary | |
---|---|
void |
collectionPhase(short phaseId)
Perform a (global) collection phase. |
boolean |
collectionRequired(boolean spaceFull,
Space space)
This method controls the triggering of a GC. |
void |
fullyBooted()
|
int |
getCollectionReserve()
Return the number of pages reserved for copying. |
int |
getPagesAvail()
Return the number of pages available for allocation, assuming all future allocation is to the nursery. |
boolean |
willNeverMove(ObjectReference object)
Can this object ever move. |
Methods inherited from class org.mmtk.plan.refcount.RCBase |
---|
getPagesUsed, isRCObject, lastCollectionFullHeap, processOptions, registerSpecializedMethods, sanityExpectedRC, sanityLinearScan |
Methods inherited from class org.mmtk.plan.Simple |
---|
replacePhase, replacePlaceholderPhase, switchNurseryZeroingApproach |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ALLOC_NURSERY
public static final int ALLOC_RC
public static final CopySpace nurserySpace
public static final int NURSERY
Constructor Detail |
---|
public GenRC()
Method Detail |
---|
public final void collectionPhase(short phaseId)
collectionPhase
in class RCBase
phaseId
- The unique id of the phase to perform.public final boolean collectionRequired(boolean spaceFull, Space space)
Plan
true
to trigger a collection.
collectionRequired
in class Plan
spaceFull
- Space request failed, must recover pages within 'space'.space
- TODO
true
if a collection is requested by the plan.public int getPagesAvail()
getPagesAvail
in class Plan
public final int getCollectionReserve()
getCollectionReserve
in class Plan
public boolean willNeverMove(ObjectReference object)
Plan
willNeverMove
in class Plan
object
- The object in question
true
if it is not possible that the object will ever move.public void fullyBooted()
fullyBooted
in class Plan
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |