JDK-8009778 : NPG: ClassMetaspaceSize is used before set in set_ergonomics_flags()
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2013-03-11
  • Updated: 2013-05-31
  • Resolved: 2013-05-31
Related Reports
Relates :  
Description
From Bengt:

I think there is another circular dependency already present in the code. If you look at max_heap_for_compressed_oops() its implementation uses ClassMetaspaceSize. But this value may be updated a bit later in set_ergonomics_flags():

    FLAG_SET_ERGO(uintx, ClassMetaspaceSize, 100*M); 
Comments
I'm closing this as a duplicate because it is being fixed as part of the fix for 8010722.
31-05-2013

Should be fixed by not using ClassMetaspaceSize in GC ergonomics since it won't be allocated with the Java heap anymore.
23-05-2013