The function JVM_ENTRY(jobject, jmm_GetMemoryUsage(JNIEnv* env, jboolean heap)) asserts the following for the memory pools:
// 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");
This is no longer true when the perm gen was removed and the metaspace was added.
These asserts should be removed.
// 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");
This is no longer true when the perm gen was removed and the metaspace was added.
These asserts should be removed.
- relates to
-
JDK-8010818 NPG: Remove metaspace memory pools
- Resolved