RFR: 8254955: x86: MethodHandlesAdapterBlob is too big
Claes Redestad
redestad at openjdk.java.net
Sat Oct 17 11:36:14 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)
-------------
Commit messages:
- Merge branch 'master' into mh_adapters_sizing
- methodHandlesAdapterBlob is excessively sized
Changes: https://git.openjdk.java.net/jdk/pull/717/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=717&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8254955
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