mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8222462: Introduce CollectedHeap::unused()
Reviewed-by: stefank, eosterlund
This commit is contained in:
parent
72491e961c
commit
2accc59e60
9 changed files with 25 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue