| Modifier and Type | Class and Description |
|---|---|
static class |
GCImpl.Accounting
Accounting for this collector.
|
protected static class |
GCImpl.RememberedSetConstructor
A ObjectVisitor to build the remembered set for a chunk.
|
static class |
GCImpl.Timer
A class for the timers kept by the collector.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GCImpl(org.graalvm.nativeimage.hosted.Feature.FeatureAccess access) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(GCCause cause)
Cause a collection of the Heap's choosing.
|
void |
collectCompletely(GCCause cause)
Cause a full collection.
|
protected GCImpl.Accounting |
getAccounting() |
List<GarbageCollectorMXBean> |
getGarbageCollectorMXBeanList()
Get the list of GarbageCollectorMXBeans for this collector.
|
void |
registerCollectionWatcher(CollectionWatcher watcher) |
void |
unregisterCollectionWatcher(CollectionWatcher watcher) |
protected GCImpl(org.graalvm.nativeimage.hosted.Feature.FeatureAccess access)
public void collect(GCCause cause)
GCpublic void collectCompletely(GCCause cause)
GCcollectCompletely in interface GCpublic void registerCollectionWatcher(CollectionWatcher watcher) throws AllocationFreeList.PreviouslyRegisteredElementException
registerCollectionWatcher in interface GCAllocationFreeList.PreviouslyRegisteredElementExceptionpublic void unregisterCollectionWatcher(CollectionWatcher watcher)
unregisterCollectionWatcher in interface GCprotected GCImpl.Accounting getAccounting()
public List<GarbageCollectorMXBean> getGarbageCollectorMXBeanList()
GCgetGarbageCollectorMXBeanList in interface GC