|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mmtk.plan.MutatorContext
org.mmtk.plan.SimpleMutator
org.mmtk.plan.StopTheWorldMutator
org.mmtk.plan.refcount.RCBaseMutator
org.mmtk.plan.refcount.generational.GenRCMutator
public class GenRCMutator
This class implements the mutator context for a simple reference counting collector.
| Field Summary | |
|---|---|
private CopyLocal |
nursery
Instance fields |
| Fields inherited from class org.mmtk.plan.MutatorContext |
|---|
immortal, lgcode, log, los, nonmove, smcode |
| Constructor Summary | |
|---|---|
GenRCMutator()
|
|
| Method Summary | |
|---|---|
Address |
alloc(int bytes,
int align,
int offset,
int allocator,
int site)
Allocate memory for an object. |
void |
collectionPhase(short phaseId,
boolean primary)
Perform a per-mutator collection phase. |
Allocator |
getAllocatorFromSpace(Space space)
Return the allocator instance associated with a space space, for this plan instance. |
void |
postAlloc(ObjectReference ref,
ObjectReference typeRef,
int bytes,
int allocator)
Perform post-allocation actions. |
| Methods inherited from class org.mmtk.plan.refcount.RCBaseMutator |
|---|
assertRemsetsFlushed, flush, flushRememberedSets, objectReferenceBulkCopy, objectReferenceTryCompareAndSwap, objectReferenceWrite |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final CopyLocal nursery
| Constructor Detail |
|---|
public GenRCMutator()
| Method Detail |
|---|
public Address alloc(int bytes,
int align,
int offset,
int allocator,
int site)
alloc in class RCBaseMutatorbytes - The number of bytes required for the object.align - Required alignment for the object.offset - Offset associated with the alignment.allocator - The allocator associated with this request.site - Allocation site
public void postAlloc(ObjectReference ref,
ObjectReference typeRef,
int bytes,
int allocator)
postAlloc in class RCBaseMutatorref - The newly allocated objecttypeRef - the type reference for the instance being createdbytes - The size of the space to be allocated (in bytes)allocator - The allocator number to be used for this allocationpublic Allocator getAllocatorFromSpace(Space space)
space, for this plan instance.
getAllocatorFromSpace in class RCBaseMutatorspace - The space for which the allocator instance is desired.
space, or null
if no appropriate allocator can be established.
public final void collectionPhase(short phaseId,
boolean primary)
collectionPhase in class RCBaseMutatorphaseId - The collection phase to performprimary - perform any single-threaded local activities.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||