|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mmtk.plan.CollectorContext
org.mmtk.plan.ControllerCollectorContext
public class ControllerCollectorContext
| Field Summary | |
|---|---|
private boolean |
concurrentCollection
Is there concurrent collection activity |
private int |
lastRequestCount
The request index that was last completed |
private Monitor |
lock
The lock to use to manage collection |
private int |
requestCount
The current request index |
private boolean |
requestFlag
Flag used to control the 'race to request' |
private ParallelCollectorGroup |
workers
The set of worker threads to use |
| Fields inherited from class org.mmtk.plan.CollectorContext |
|---|
log |
| Constructor Summary | |
|---|---|
ControllerCollectorContext(ParallelCollectorGroup workers)
Create a controller context. |
|
| Method Summary | |
|---|---|
private void |
clearRequest()
Clear the collection request, making future requests incur an additional collection cycle. |
void |
initCollector(int id)
Notify that the collector context is registered and ready to execute. |
void |
request()
Request a collection. |
void |
requestConcurrentCollection()
Request that concurrent collection is performed after this stop-the-world increment. |
void |
run()
Main execution loop. |
private void |
waitForRequest()
Wait until a request is received. |
| Methods inherited from class org.mmtk.plan.CollectorContext |
|---|
allocCopy, copyCheckAllocator, getId, getLog, parallelWorkerCount, parallelWorkerOrdinal, postCopy, rendezvous |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Monitor lock
private ParallelCollectorGroup workers
private boolean requestFlag
private int requestCount
private int lastRequestCount
private boolean concurrentCollection
| Constructor Detail |
|---|
public ControllerCollectorContext(ParallelCollectorGroup workers)
workers - The worker group to use for collection.| Method Detail |
|---|
public void initCollector(int id)
CollectorContext
initCollector in class CollectorContextid - The id of this collector context.public void run()
run in class CollectorContextpublic void requestConcurrentCollection()
public void request()
private void clearRequest()
private void waitForRequest()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||