JDK-8301338 : Identical branch conditions in CompileBroker::print_heapinfo
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,17,20,21
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-01-30
  • Updated: 2023-04-27
  • Resolved: 2023-01-31
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 17 JDK 20 JDK 21
17.0.8-oracleFixed 20.0.2Fixed 21 b08Fixed
Related Reports
Relates :  
Description
This was silently introduced by JDK-8219586. SonarCloud complains:
 "Identical sub-expressions on both sides of operator "||".

There are two occurrences of:

if ((function_lock_1 != NULL) || (function_lock_1 != NULL)) {

Comments
Fix request [17u] I backport this for parity with 17.0.8-oracle. No risk, very obvious change. I had to resolve. SAP nightly testing passed.
24-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1272 Date: 2023-04-19 09:57:42 +0000
19-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk20u/pull/36 Date: 2023-03-29 11:15:24 +0000
29-03-2023

Fix Request (JDK 20u) Resolves an issue with potential incorrect debug output. The fix is trivial, was already backported to Oracle JDK 17u and tested in the JDK 21 and 17u CIs. The backport applies cleanly.
29-03-2023

Changeset: d583767b Author: Aleksey Shipilev <shade@openjdk.org> Date: 2023-01-31 11:06:47 +0000 URL: https://git.openjdk.org/jdk/commit/d583767bf17aea55d361a1d1713444fc41fa9911
31-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12288 Date: 2023-01-30 10:20:51 +0000
30-01-2023

ILW = Possibly incorrect heap info printed with PrintCodeHeapAnalytics, only with PrintCodeHeapAnalytics, no workaround = LLH = P5
30-01-2023