8222462: Introduce CollectedHeap::unused()

Reviewed-by: stefank, eosterlund
This commit is contained in:
Per Lidén 2019-04-25 08:55:49 +02:00
parent 72491e961c
commit 2accc59e60
9 changed files with 25 additions and 6 deletions

View file

@ -210,6 +210,9 @@ class CollectedHeap : public CHeapObj<mtInternal> {
virtual size_t capacity() const = 0;
virtual size_t used() const = 0;
// Returns unused capacity.
virtual size_t unused() const;
// Return "true" if the part of the heap that allocates Java
// objects has reached the maximal committed limit that it can
// reach, without a garbage collection.