JDK-8010730 : NPG: Bad assert in JVM_ENTRY(jobject, jmm_GetMemoryUsage(JNIEnv* env, jboolean heap))
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs25
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-03-25
  • Updated: 2013-07-02
  • Resolved: 2013-07-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
hs25Fixed
Related Reports
Relates :  
Description
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.
Comments
This was fixed in the fix for JDK-8013590.
02-07-2013