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

Alan Bateman alanb at openjdk.org
Mon Oct 17 06:56:05 UTC 2022


On Mon, 17 Oct 2022 06:37:24 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Looking at the existing code (without the proposed changes in this PR), it appears that it's not just the number of `moduleInfos` that could impact the method size but even details like `requires`, `exports`, `opens` and other such details, since we loop over each of these details to construct the method body.

That's right and we may have to do further work in the future to avoid generating methods larger than 64k. The approach taken in this PR is okay for now but the current patch needs a bit more work to generate correct code.

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

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


More information about the core-libs-dev mailing list