JDK-8294053 : Unneeded local variable in handle_safefetch()
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-09-20
  • Updated: 2022-09-29
  • Resolved: 2022-09-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 20
20 b17Fixed
Related Reports
Relates :  
Description
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().





Comments
Changeset: acd75e0f Author: Fredrik Bredberg <fredrik.bredberg@oracle.com> Committer: Robbin Ehn <rehn@openjdk.org> Date: 2022-09-23 12:34:06 +0000 URL: https://git.openjdk.org/jdk/commit/acd75e0f1cddf8307bf0ef4f95a6f11051c30bc2
23-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10373 Date: 2022-09-21 10:11:55 +0000
22-09-2022

This is one of a number of issues already listed in JDK-8292166.
22-09-2022