RFR 8243572: Multiple tests fail with assert(cld->klasses() != 0LL) failed: unexpected NULL for cld->klasses()

Mandy Chung mandy.chung at oracle.com
Tue Apr 28 19:36:02 UTC 2020

Hi Harold,

On 4/28/20 10:27 AM, Harold Seigel wrote:
> :
> Open Webrev: 
> http://cr.openjdk.java.net/~hseigel/bug_8243572/webrev/index.html

This patch looks okay in general.  JFR is tracking the classes loaded 
that has no strong relationship with any class loader.  VM 
implementation calls such CLD that has a class mirror.  In other words, 
it is only tracking the hidden classes defined with the default option.

So some suggestion:


   82   uintx             _hidden_classes_count;

rename this on to non_strong_hidden_classes_count


  221     <Field type="boolean" name="hiddenClassLoader" label="Hidden Class Loader" />

There is no such thing called "hidden class loader".  Perhaps simply "hidden classes"?

  727     <Field type="long" name="hiddenClassCount" label="Hidden Classes" description="Number of hidden classes" />
  728     <Field type="ulong" contentType="bytes" name="hiddenChunkSize" label="Total Hidden Classes Chunk Size"
  729       description="Total size of all allocated metaspace chunks for hidden classes (each chunk has several blocks)" />
  730     <Field type="ulong" contentType="bytes" name="hiddenBlockSize" label="Total Hidden Classes Block Size"
  731       description="Total size of all allocated metaspace blocks for hidden classes (each chunk has several blocks)" />

what about s/hidden classes/non-strong hidden classes/?


More information about the hotspot-runtime-dev mailing list