RFR: 8255493: Support for pre-generated java.lang.invoke classes in CDS dynamic archive [v11]

Yumin Qi minqi at openjdk.java.net
Fri Apr 30 03:59:52 UTC 2021


On Fri, 30 Apr 2021 03:44:55 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> Here is the original code, and it is necessary, KlassFactory::create_from_stream could throw exception.
>
> What kid of exceptions will be thrown (other than OOM?) Do you mean `CDS.generateLambdaFormHolderClasses()` can generate bad class files?

This is after CDS.generateLambdaFormHolderClasses, we get the byte stream of a class --- we need create instanceklass of the class. The exception is from ClassParser ---- whatever the exception during the process.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3611


More information about the hotspot-dev mailing list