|
|||||||||||
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.ToCursor
private static final class MarkCompactCollector.ToCursor
Subclass for the read-only cursor that follows the 'from' cursor, writing or calculating the position of copied objects
Field Summary |
---|
Fields inherited from class org.mmtk.policy.MarkCompactCollector.RegionCursor |
---|
cursor, limit, region |
Constructor Summary | |
---|---|
MarkCompactCollector.ToCursor()
|
Method Summary | |
---|---|
(package private) void |
advanceToNextRegion()
Move to the next region, in read-only mode. |
(package private) void |
copy(ObjectReference from,
ObjectReference to)
Copy an object to an address within this cursor's region. |
(package private) void |
finish()
Update the metadata of the current region with the current value of the cursor. |
(package private) void |
finishAndAdvanceToNextRegion()
Move to the next region, updating the metadata with the current 'write' state. |
(package private) void |
init(Address region)
Initialize the cursor to a given region. |
(package private) Address |
snip()
Terminate the list of regions here. |
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.ToCursor()
Method Detail |
---|
void init(Address region)
init
in class MarkCompactCollector.RegionCursor
region
- The region to be processed.void finish()
Address snip()
void copy(ObjectReference from, ObjectReference to)
from
- The source objectto
- The target objectvoid finishAndAdvanceToNextRegion()
void advanceToNextRegion()
advanceToNextRegion
in class MarkCompactCollector.RegionCursor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |