8013590: NPG: Add a memory pool MXBean for Metaspace

Reviewed-by: jmasa, mgerdin
This commit is contained in:
Erik Helin 2013-06-26 16:58:37 +02:00
parent ca3a1be3fe
commit 604a75ff30
10 changed files with 222 additions and 21 deletions

View file

@ -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,