RFR: 8331126: [s390x] secondary_super_cache does not scale well [v8]
Andrew Haley
aph at openjdk.org
Fri Jun 28 09:39:20 UTC 2024
On Fri, 28 Jun 2024 09:05:58 GMT, Amit Kumar <amitkumar at openjdk.org> wrote:
>> At present, lookup_secondary_supers_table updates r_result just in case it changes in future.
>
> Should I change it ?
What does "in future" mean? In the next couple of nanoseconds after this instruction executes? When someone changes this code?
You need to say, precisely, what this routine provides. That is to say, what is its postcondition. If some logic is not necessary for that postcondition, don't do it.
This routine sets result, or it sets flags, or both. Say which of these it is, the make sure that all code paths do so.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19544#discussion_r1658429493
More information about the hotspot-dev
mailing list