RFR: 8332249: Micro-optimize Method.hashCode [v2]
Claes Redestad
redestad at openjdk.org
Fri Jun 7 11:34:16 UTC 2024
On Wed, 5 Jun 2024 13:45:46 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> As a note, If we would have access to the contemplated `StableValue` and `hash` was declared even as an _instance variable_ `StableValue<Integer>` in a regular class, then it would be trusted and would be eligible for constant folding due to the VM will have special rules for fields of StableValue type.
>
> Ahh. There was a benchmark in the initial message. Sorry.
We think this is caused by the membars being conservatively emitted at method exit, and more precis membar control should help ARM. Filed: https://bugs.openjdk.org/browse/JDK-8333791
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19433#discussion_r1631071572
More information about the core-libs-dev
mailing list