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.
|
static GCImpl |
getGCImpl() |
void |
registerCollectionWatcher(CollectionWatcher watcher) |
void |
unregisterCollectionWatcher(CollectionWatcher watcher) |
protected GCImpl(org.graalvm.nativeimage.hosted.Feature.FeatureAccess access)
public void collect(GCCause cause)
GC
public static GCImpl getGCImpl()
public void collectCompletely(GCCause cause)
GC
collectCompletely
in interface GC
public void registerCollectionWatcher(CollectionWatcher watcher) throws AllocationFreeList.PreviouslyRegisteredElementException
registerCollectionWatcher
in interface GC
AllocationFreeList.PreviouslyRegisteredElementException
public void unregisterCollectionWatcher(CollectionWatcher watcher)
unregisterCollectionWatcher
in interface GC
protected GCImpl.Accounting getAccounting()
public List<GarbageCollectorMXBean> getGarbageCollectorMXBeanList()
GC
getGarbageCollectorMXBeanList
in interface GC