JDK-8216581 : Add support in JFR for hidden classes
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: repo-valhalla
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-01-11
  • Updated: 2020-03-17
  • Resolved: 2020-03-17
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
repo-valhallaFixed
Description
Support in JFR is needed for hidden classes.   JFR event for an ordinary class should always be provided for a hidden class. 

JFR support for unsafe VM anonymous class will need to be examined and it falls into all of the following buckets whereas hidden classes may fall into one or more of the following:

1. non-findable i.e. hidden
2. weakly referenced by its defining class loader
3. nestmate 
Comments
Fixed with: Changeset: 62a97593094e Author: hseigel Date: 2020-03-17 14:32 +0000 URL: https://hg.openjdk.java.net/valhalla/valhalla/rev/62a97593094e 8216581: Add support in JFR for hidden classes Summary: add event support and "hidden" field for Java Classes Reviewed-by: coleenp, mgronlun ! src/hotspot/share/classfile/classLoaderStats.cpp ! src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleDescription.cpp ! src/hotspot/share/jfr/metadata/metadata.xml ! src/hotspot/share/jfr/periodic/jfrPeriodic.cpp ! src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp ! src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSetUtils.cpp ! src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSetUtils.hpp ! src/hotspot/share/memory/metaspace/printCLDMetaspaceInfoClosure.cpp ! src/hotspot/share/memory/metaspaceTracer.cpp ! src/hotspot/share/oops/klass.hpp ! test/jdk/jdk/jfr/event/runtime/TestClassDefineEvent.java ! test/jdk/jdk/jfr/event/runtime/TestClassLoadEvent.java ! test/jdk/jdk/jfr/event/runtime/TestClassLoaderStatsEvent.java ! test/jdk/jdk/jfr/event/runtime/TestClassLoadingStatisticsEvent.java ! test/jdk/jdk/jfr/event/runtime/TestClassUnloadEvent.java ! test/jdk/jdk/jfr/event/runtime/TestClasses.java ! test/jdk/jdk/jfr/event/runtime/TestTableStatisticsEvent.java
17-03-2020

[~hseigel] Lois suggests that you can own this one and determine if this should be reassigned.
12-09-2019