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
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
- relates to
-
JDK-8266764 [REDO] JDK-8255493 Support for pre-generated java.lang.invoke classes in CDS dynamic archive
- Resolved