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

Oliver Kopp duke at openjdk.org
Wed Jun 14 20:16:18 UTC 2023


> 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 incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - Merge remote-tracking branch 'upstream/master' into fix-8240567
 - Remove "final" at "enabled" - not part of the point of this PR
 - Remove comments
 - 8240567: MethodTooLargeException thrown while creating a jlink image
   
   Co-authored-by: Christoph Schwentker <siedlerkiller at gmail.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14408/files
  - new: https://git.openjdk.org/jdk/pull/14408/files/9d4142cc..e158a2c3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14408&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14408&range=01-02

  Stats: 11376 lines in 386 files changed: 2834 ins; 7354 del; 1188 mod
  Patch: https://git.openjdk.org/jdk/pull/14408.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14408/head:pull/14408

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


More information about the core-libs-dev mailing list