RFR: 8294053: Unneeded local variable in handle_safefetch()

Fredrik Bredberg duke at openjdk.org
Fri Sep 23 12:29:30 UTC 2022


On Wed, 21 Sep 2022 10:11:55 GMT, Fredrik Bredberg <duke at openjdk.org> wrote:

> The input argument "pc" is shadowed by a local variable with the same type and name, and is initialized to the same value as is passed into the handle_safefetch() function by its callers. The local "pc" variable can therefore be removed from handle_safefetch().
> 
> Tested tier1, tier2 and  tier3 without any new problems.

Thank you for the review comments and "providing the bigger picture".

-------------

PR: https://git.openjdk.org/jdk/pull/10373


More information about the hotspot-runtime-dev mailing list