JDK-8268640 : Some hidden classes loaded for regenerating holder classes are not excluded
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17,18
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • Submitted: 2021-06-12
  • Updated: 2021-06-12
  • Resolved: 2021-06-12
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.
JDK 18
18Resolved
Related Reports
Relates :  
Description
When regenerating holder classes for lambda invoke function, some hidden classes loaded but not excluded from archive:
When use -Xlog:cds=trace, a simple dynamic dump with HelloWorld shows:
[3.261s][info ][cds,dynamic] Archiving hidden java.lang.invoke.GenerateJLIClassesHelper$HolderClassBuilder$$Lambda$3/0x0000000801042178
[3.261s][info ][cds,dynamic] Archiving hidden java.lang.invoke.GenerateJLIClassesHelper$$Lambda$2/0x0000000801041918
[3.261s][info ][cds,dynamic] Archiving hidden java.lang.invoke.GenerateJLIClassesHelper$$Lambda$1/0x00000008010416c8
Comments
Those are proxy classes which should be archived.
12-06-2021