RFR: 8318609: Upcall stubs should be smaller
Martin Doerr
mdoerr at openjdk.org
Fri Oct 20 16:30:17 UTC 2023
We can use `resolve_global_jobject` (introduced by [JDK-8299089](https://bugs.openjdk.org/browse/JDK-8299089)) because we know that the handle is created by `JNIHandles::make_global` in `UL_MakeUpcallStub`. That creates much shorter code.
Size reduced from 1360 bytes to 648 bytes on x64.
-------------
Commit messages:
- 8318609: Upcall stubs should be smaller
Changes: https://git.openjdk.org/jdk/pull/16290/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16290&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8318609
Stats: 7 lines in 4 files changed: 0 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/16290.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16290/head:pull/16290
PR: https://git.openjdk.org/jdk/pull/16290
More information about the hotspot-compiler-dev
mailing list