RFR: 8359359: AArch64: share trampolines between static calls to the same method [v3]
Evgeny Astigeevich
eastigeevich at openjdk.org
Tue Aug 12 16:22:17 UTC 2025
On Tue, 12 Aug 2025 14:12:23 GMT, Mikhail Ablakatov <mablakatov at openjdk.org> wrote:
> > There should not be any duplication. Why do you think so?
>
> `StubRoutines::aarch64::large_arrays_hashcode` is both a key and a part of the value in the example above.
An unordered set always has some duplication because it is implemented on top of hash table.
If `SharedTrampolineRequests` were declared as a set, this duplication would not be exposed.
I prefer code without IFs. Duplication is not a big price to pay.
If you want you can add a class `SharedTrampolineRequests` with `ResizeableResourceHashtable` hidden inside.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25954#discussion_r2270482625
More information about the hotspot-dev
mailing list