|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.policy.MarkCompactCollector.RegionCursor org.mmtk.policy.MarkCompactCollector.FromCursor
private static final class MarkCompactCollector.FromCursor
Subclass for the read-only cursor that leads the scan of regions.
Field Summary |
---|
Fields inherited from class org.mmtk.policy.MarkCompactCollector.RegionCursor |
---|
cursor, limit, region |
Constructor Summary | |
---|---|
MarkCompactCollector.FromCursor()
|
Method Summary | |
---|---|
(package private) void |
advanceToNextForwardableRegion(MarkCompactSpace space)
Advance the cursor either to the next region in the list, or to a new region allocated from the global list. |
(package private) void |
advanceToNextRegion()
Override the superclass with an additional assertion - we only advance when we have read to the end, and the cursor must point *precisely* to the last allocated byte in the region. |
(package private) ObjectReference |
advanceToObject()
Advance from the cursor to the start of the next object. |
(package private) void |
advanceToObjectEnd(ObjectReference current)
Advance the cursor to the end of the given object. |
(package private) boolean |
hasMoreObjects()
|
(package private) void |
init(Address region)
Initialize the cursor - the limit is the end of the allocated data |
Methods inherited from class org.mmtk.policy.MarkCompactCollector.RegionCursor |
---|
assertCursorInBounds, get, getLimit, getRegion, inc, incTo, isAvailable, isInRegion, isValid, print, sameRegion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkCompactCollector.FromCursor()
Method Detail |
---|
void init(Address region)
init
in class MarkCompactCollector.RegionCursor
region
- The region to be processed.ObjectReference advanceToObject()
void advanceToObjectEnd(ObjectReference current)
void advanceToNextForwardableRegion(MarkCompactSpace space)
space
- void advanceToNextRegion()
advanceToNextRegion
in class MarkCompactCollector.RegionCursor
boolean hasMoreObjects()
true
if there are more objects in this region
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |