|
|||||||||||
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.generational.Gen org.mmtk.plan.generational.immix.GenImmix
public class GenImmix
This class implements the functionality of a two-generation copying
collector where the higher generation is an immix space.
Nursery collections occur when either the heap is full or the nursery
is full. The nursery size is determined by an optional command line
argument. If undefined, the nursery size is "infinite", so nursery
collections only occur when the heap is full (this is known as a
flexible-sized nursery collector). Thus both fixed and flexible
nursery sizes are supported. Full heap collections occur when the
nursery size has dropped to a statically defined threshold,
NURSERY_THRESHOLD
See the PLDI'08 paper by Blackburn and McKinley for a description of the algorithm: http://doi.acm.org/10.1145/1375581.1375586
See the Jones & Lins GC book, chapter 7 for a detailed discussion of generational collection and section 7.3 for an overview of the flexible nursery behavior ("The Standard ML of New Jersey collector"), or go to Appel's paper "Simple generational garbage collection and fast allocation." SP&E 19(2):171--183, 1989.
For general comments about the global/local distinction among classes refer to Plan.java and PlanLocal.java.
Field Summary | |
---|---|
static int |
IMMIX
|
static ImmixSpace |
immixSpace
The mature space, which for GenImmix uses a mark sweep collection policy. |
private boolean |
lastGCWasDefrag
|
Trace |
matureTrace
The trace class for a full-heap collection |
static int |
SCAN_IMMIX
Specialized scanning method identifier |
Fields inherited from class org.mmtk.plan.StopTheWorld |
---|
postSanityPhase, preSanityPhase |
Constructor Summary | |
---|---|
GenImmix()
|
Method Summary | |
---|---|
protected Space |
activeMatureSpace()
Accessor method to allow the generic generational code in Gen.java to access the mature space. |
void |
collectionPhase(short phaseId)
Perform a (global) collection phase. |
int |
getCollectionReserve()
Return the number of pages reserved for collection. |
int |
getMaturePhysicalPagesAvail()
Return the number of pages available for allocation into the mature space. |
int |
getPagesUsed()
Return the number of pages reserved for use given the pending allocation. |
boolean |
lastCollectionWasExhaustive()
|
protected void |
registerSpecializedMethods()
Register specialized methods. |
boolean |
willNeverMove(ObjectReference object)
Can this object ever move. |
Methods inherited from class org.mmtk.plan.generational.Gen |
---|
collectionRequired, copyMature, forceFullHeapCollection, fullyBooted, getPagesAvail, isCurrentGCNursery, lastCollectionFullHeap, printPreStats, requiresFullHeapCollection, sanityExpectedRC, traceFullHeap |
Methods inherited from class org.mmtk.plan.StopTheWorld |
---|
processOptions |
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 ImmixSpace immixSpace
public static final int IMMIX
public static final int SCAN_IMMIX
public final Trace matureTrace
private boolean lastGCWasDefrag
Constructor Detail |
---|
public GenImmix()
Method Detail |
---|
public final void collectionPhase(short phaseId)
collectionPhase
in class Gen
phaseId
- The unique id of the phase to perform.public boolean lastCollectionWasExhaustive()
lastCollectionWasExhaustive
in class Plan
public int getPagesUsed()
getPagesUsed
in class Gen
public int getMaturePhysicalPagesAvail()
Gen
getMaturePhysicalPagesAvail
in class Gen
public int getCollectionReserve()
Gen
getCollectionReserve
in class Gen
protected final Space activeMatureSpace()
Gen
activeMatureSpace
in class Gen
public boolean willNeverMove(ObjectReference object)
Plan
willNeverMove
in class Gen
object
- The object in question
true
if it is not possible that the object will ever move.protected void registerSpecializedMethods()
Plan
registerSpecializedMethods
in class Gen
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |