RFR: 8254955: x86: MethodHandlesAdapterBlob is too big [v2]

Claes Redestad redestad at openjdk.java.net
Sat Oct 17 22:58:21 UTC 2020


> At some point JSR 292 was reworked to generate all but a small handful of interpreter stubs lazily, leaving the
> MethodHandlesAdapterBlob with a bit too much room to spare.
> The remaining stubs use less than 1000 bytes of memory in product builds, and less than 3k in debug builds. This patch
> adjust the sizes accordingly.
> Other platforms (except zero) seem like they could use a similar adjustment, but I don't have hardware available to
> check how big the interpreter stubs get on anything but x86 so I'll leave them untouched unless someone can run the
> numbers (`java -XX:+UnlockDiagnosticVMOptions -XX:+VerifyMethodHandles -XX:+LogCompilation` - grep the hotspot_log
> generated for MethodHandlesAdapterBlob or just blob since it's the first one)

Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:

  ZGC & Shenandoah requires a little more space

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/717/files
  - new: https://git.openjdk.java.net/jdk/pull/717/files/0a219c3d..d21c108d

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=717&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=717&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/717.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/717/head:pull/717

PR: https://git.openjdk.java.net/jdk/pull/717


More information about the hotspot-compiler-dev mailing list