RFR: 8240567: MethodTooLargeException thrown while creating a jlink image

Alan Bateman alanb at openjdk.org
Sun Oct 16 16:24:58 UTC 2022


On Fri, 14 Oct 2022 06:10:11 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Hello Oliver, the GitHub actions job failures appear related to this change. For example:
> 
> ```
> Error occurred during initialization of boot layer
> java.lang.VerifyError: Method does not expect a return value

I think there are still issues. As a quick test, set the maximum number of descriptors to generate per method to less than 70, so that you get Sub0, Sub1, ... generated. Then try `java -Xlog:init=debug -XX:+UnlockDiagnosticVMOptions -XX:+BytecodeVerificationLocal -version` to see if the verify is okay with it.

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

PR: https://git.openjdk.org/jdk/pull/10704


More information about the core-libs-dev mailing list