mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8013590: NPG: Add a memory pool MXBean for Metaspace
Reviewed-by: jmasa, mgerdin
This commit is contained in:
parent
ca3a1be3fe
commit
604a75ff30
10 changed files with 222 additions and 21 deletions
|
@ -894,12 +894,6 @@ JVM_ENTRY(jobject, jmm_GetMemoryUsage(JNIEnv* env, jboolean heap))
|
|||
}
|
||||
}
|
||||
|
||||
// In our current implementation, we make sure that all non-heap
|
||||
// pools have defined init and max sizes. Heap pools do not matter,
|
||||
// as we never use total_init and total_max for them.
|
||||
assert(heap || !has_undefined_init_size, "Undefined init size");
|
||||
assert(heap || !has_undefined_max_size, "Undefined max size");
|
||||
|
||||
MemoryUsage usage((heap ? InitialHeapSize : total_init),
|
||||
total_used,
|
||||
total_committed,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue