|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmtk.vm.Collection
public abstract class Collection
| Field Summary | |
|---|---|
static int |
EXTERNAL_GC_TRIGGER
Externally triggered garbage collection (eg call to System.gc()) |
static int |
INTERNAL_GC_TRIGGER
Internally triggered garbage collection. |
static int |
INTERNAL_PHASE_GC_TRIGGER
Concurrent collection phase trigger. |
static int |
RESOURCE_GC_TRIGGER
Resource triggered garbage collection. |
static int |
TRIGGER_REASONS
The number of garbage collection trigger reasons. |
protected static String[] |
triggerReasons
Short descriptions of the garbage collection trigger reasons. |
static int |
UNKNOWN_GC_TRIGGER
An unknown GC trigger reason. |
| Constructor Summary | |
|---|---|
Collection()
|
|
| Method Summary | |
|---|---|
abstract int |
activeGCThreadOrdinal()
|
abstract int |
activeGCThreads()
|
abstract boolean |
isEmergencyAllocation()
Does the VM consider this an emergency alloction, where the normal heap size rules can be ignored. |
abstract void |
joinCollection()
Joins an already requested collection. |
abstract int |
maximumCollectionAttempt()
The maximum number collection attempts across threads. |
abstract boolean |
noThreadsInGC()
Determine whether a collection cycle has fully completed (this is used to ensure a GC is not in the process of completing, to avoid, for example, an async GC being triggered on the switch from GC to mutator thread before all GC threads have switched. |
abstract void |
prepareCollector(CollectorContext c)
Prepare a collector for a collection. |
abstract void |
prepareMutator(MutatorContext m)
Prepare a mutator for collection. |
abstract int |
rendezvous(int where)
Rendezvous with all other processors, returning the rank (that is, the order this processor arrived at the barrier). |
abstract void |
reportAllocationSuccess()
Report that the allocation has succeeded. |
abstract void |
reportPhysicalAllocationFailed()
Report that a physical allocation has failed. |
abstract void |
requestMutatorFlush()
Request each mutator flush remembered sets. |
abstract void |
scheduleConcurrentWorkers()
Ensure all concurrent worker threads are scheduled. |
abstract void |
triggerAsyncCollection(int why)
Trigger an asynchronous collection, checking for memory exhaustion first. |
abstract void |
triggerCollection(int why)
Triggers a collection. |
abstract boolean |
yieldpoint()
Possibly yield the current concurrent collector thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNKNOWN_GC_TRIGGER
public static final int INTERNAL_PHASE_GC_TRIGGER
public static final int EXTERNAL_GC_TRIGGER
public static final int RESOURCE_GC_TRIGGER
public static final int INTERNAL_GC_TRIGGER
public static final int TRIGGER_REASONS
protected static final String[] triggerReasons
| Constructor Detail |
|---|
public Collection()
| Method Detail |
|---|
public abstract void triggerCollection(int why)
why - the reason why a collection was triggered. 0 to
TRIGGER_REASONS - 1.public abstract void joinCollection()
public abstract void triggerAsyncCollection(int why)
why - the reason why a collection was triggered. 0 to
TRIGGER_REASONS - 1.public abstract int maximumCollectionAttempt()
public abstract void reportAllocationSuccess()
public abstract void reportPhysicalAllocationFailed()
public abstract boolean isEmergencyAllocation()
public abstract boolean noThreadsInGC()
public abstract void prepareMutator(MutatorContext m)
m - the mutator to preparepublic abstract void prepareCollector(CollectorContext c)
c - the collector to preparepublic abstract int rendezvous(int where)
public abstract int activeGCThreads()
public abstract int activeGCThreadOrdinal()
public abstract void scheduleConcurrentWorkers()
public abstract void requestMutatorFlush()
public abstract boolean yieldpoint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||