private static final class MarkCompactCollector.ToCursor extends MarkCompactCollector.RegionCursor
cursor, limit, region
Constructor and Description |
---|
ToCursor() |
Modifier and Type | Method and Description |
---|---|
(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.
|
assertCursorInBounds, get, getLimit, getRegion, inc, incTo, isAvailable, isInRegion, isValid, print, sameRegion
ToCursor()
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