RFR: 8240567: MethodTooLargeException thrown while creating a jlink image [v12]
Oliver Kopp
duke at openjdk.org
Sat Jul 1 22:06:54 UTC 2023
On Sat, 1 Jul 2023 18:36:10 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.
>
> Oliver Kopp has updated the pull request incrementally with two additional commits since the last revision:
>
> - Fix test
> - Fix ArrayList initialization and off-by-one errors
I addressed all review comments. Tests are green. I also successfully tried with our desktop app (by backporting to JDK21).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14408#issuecomment-1616155040
More information about the core-libs-dev
mailing list