RFR: 8240567: MethodTooLargeException thrown while creating a jlink image [v22]
Mandy Chung
mchung at openjdk.org
Thu Jul 6 16:12:16 UTC 2023
On Thu, 6 Jul 2023 00:13:05 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 with a new target base due to a merge or a rebase. The pull request now contains 32 commits:
>
> - Merge remote-tracking branch 'upstream/master' into fix-8240567
> - Revert (non-working) DedupSetBuilder filling
> - Merge remote-tracking branch 'upstream/master' into fix-8240567
> - Reformat
> - Update test/jdk/tools/jlink/JLink100Modules.java
>
> Co-authored-by: Mandy Chung <mandy.chung at oracle.com>
> - Refine test to fill DedupSetBuilder
> - Merge remote-tracking branch 'upstream/master' into fix-8240567
> - Replace non-final wrapper by local variable
> - Update src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/SystemModulesPlugin.java
>
> Co-authored-by: Mandy Chung <mandy.chung at oracle.com>
> - Update src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/SystemModulesPlugin.java
>
> Co-authored-by: Mandy Chung <mandy.chung at oracle.com>
> - ... and 22 more: https://git.openjdk.org/jdk/compare/d072c40f...584edbae
I created https://bugs.openjdk.org/browse/JDK-8311591. This issue should not be backport until JDK-8311591 is resolved.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14408#issuecomment-1623937334
More information about the core-libs-dev
mailing list