RFR: 8240567: MethodTooLargeException thrown while creating a jlink image
Christoph
duke at openjdk.org
Sun Jun 11 23:18:13 UTC 2023
On Sun, 11 Jun 2023 21:01:54 GMT, Oliver Kopp <duke at openjdk.org> wrote:
> Fix for [JDK-8240567](https://bugs.openjdk.org/browse/JDK-8240567): "MethodTooLargeException thrown while creating a jlink image".
>
> Java still has a 64kb limit: A method may not be longer than 64kb. The idea of the fix is to split up the generated methods in several smaller methods
>
> This is a follow-up to https://github.com/openjdk/jdk/pull/10704. GitHub did not allow me to re-open the PR, because I did a force-push to have one commit.
We validated this by compiling JabRef against it and a) writing out the generated class file for the generated bytecode and b) verifying with -Xlog:init=debug -XX:+UnlockDiagnosticVMOptions -XX:+BytecodeVerificationLocal
Is there a way to "parse" or call the verifyer after generation?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14408#issuecomment-1586339612
More information about the core-libs-dev
mailing list