|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.utility.alloc.Allocator org.mmtk.utility.alloc.LargeObjectAllocator org.mmtk.policy.LargeObjectLocal
public final class LargeObjectLocal
Each instance of this class is intended to provide fast, unsynchronized access to a treadmill. Therefore instances must not be shared across truly concurrent threads (CPUs). Rather, one or more instances of this class should be bound to each CPU. The shared VMResource used by each instance is the point of global synchronization, and synchronization only occurs at the granularity of acquiring (and releasing) chunks of memory from the VMResource.
If there are C CPUs and T TreadmillSpaces, there must be C X T instances of this class, one for each CPU, TreadmillSpace pair.
Field Summary |
---|
Fields inherited from class org.mmtk.utility.alloc.LargeObjectAllocator |
---|
space |
Constructor Summary | |
---|---|
LargeObjectLocal(BaseLargeObjectSpace space)
Constructor |
Method Summary | |
---|---|
void |
gcspyGatherData(int event,
TreadmillDriver losDriver)
Gather data for GCSpy from the nursery |
void |
gcspyGatherData(int event,
TreadmillDriver losDriver,
boolean tospace)
Gather data for GCSpy for an older space |
void |
prepare(boolean fullHeap)
Prepare for a collection. |
void |
release(boolean fullHeap)
Finish up after a collection. |
Methods inherited from class org.mmtk.utility.alloc.LargeObjectAllocator |
---|
alloc, allocSlowOnce, getSpace, show |
Methods inherited from class org.mmtk.utility.alloc.Allocator |
---|
alignAllocation, alignAllocation, alignAllocationNoFill, allocSlow, allocSlowInline, determineCollectionAttempts, fillAlignmentGap, getMaximumAlignedSize, getMaximumAlignedSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LargeObjectLocal(BaseLargeObjectSpace space)
space
- The treadmill space to which this thread instance is
bound.Method Detail |
---|
public void prepare(boolean fullHeap)
public void release(boolean fullHeap)
public void gcspyGatherData(int event, TreadmillDriver losDriver)
event
- the gc eventlosDriver
- the GCSpy space driverpublic void gcspyGatherData(int event, TreadmillDriver losDriver, boolean tospace)
event
- the gc eventlosDriver
- the GCSpy space drivertospace
- gather from tospace?
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |