public abstract class ReferenceProcessor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReferenceProcessor.Semantics |
Constructor and Description |
---|
ReferenceProcessor() |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Clear the contents of the table.
|
abstract int |
countWaitingReferences() |
abstract void |
forward(TraceLocal trace,
boolean nursery)
Iterate over all references and forward.
|
abstract void |
scan(TraceLocal trace,
boolean nursery,
boolean retain)
Scan through the list of references.
|
public ReferenceProcessor()
public abstract void clear()
public abstract void scan(TraceLocal trace, boolean nursery, boolean retain)
trace
- the thread local trace element.nursery
- true
if it is safe to only scan new references.retain
- whether to retain those references whose referents are not
reachablepublic abstract void forward(TraceLocal trace, boolean nursery)
trace
- The MMTk trace to forward tonursery
- The nursery collection hintpublic abstract int countWaitingReferences()