RFR: 8253920: Share method trampolines in CDS dynamic archive [v2]
Calvin Cheung
ccheung at openjdk.java.net
Mon Oct 26 20:41:29 UTC 2020
> This patch is to allow sharing of the same method trampoline for archived Methods with the same AdapterHandleEntry when using CDS dynamic archive.
>
> Running javac on HelloWorld with CDS dynamic archive, the number of calls to SharedRuntime::generate_trampoline() is reduced to 406 times vs 12601 times without the patch.
>
> In terms of saving on instructions and time (on linux-x64):
> instr delta = -2807662 -0.1369%
> time delta = -6.860 ms -1.8798%
>
> It passed tiers 1,2,3,4 testing.
Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:
update per review comment
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/868/files
- new: https://git.openjdk.java.net/jdk/pull/868/files/af513fb1..213262ea
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=868&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=868&range=00-01
Stats: 13 lines in 1 file changed: 0 ins; 1 del; 12 mod
Patch: https://git.openjdk.java.net/jdk/pull/868.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/868/head:pull/868
PR: https://git.openjdk.java.net/jdk/pull/868
More information about the hotspot-runtime-dev
mailing list