RFR: 8240567: MethodTooLargeException thrown while creating a jlink image [v14]

Christoph duke at openjdk.org
Thu Jan 26 19:33:17 UTC 2023


On Thu, 26 Jan 2023 19:18:52 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
>
> Oliver Kopp has updated the pull request incrementally with one additional commit since the last revision:
> 
>   remove whitespace

We readded the splitting code and the test is passing. In the test we could make it work with up to 130 modules where each module _n_ requires all modules from _0...n_

Any further optimization ideas?

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

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


More information about the core-libs-dev mailing list