JDK-8331088 : Incorrect TraceLoopPredicate output
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,17,21,23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-04-25
  • Updated: 2024-05-09
  • Resolved: 2024-05-02
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 23
23 b22Fixed
Related Reports
Relates :  
Description
This line in PhaseIdealLoop::loop_predication_impl_helper prints the node index of the lower bounds check, not the upper bounds check:

if (TraceLoopPredicate) tty->print_cr("upper bound check if: %d", lower_bound_iff->_idx);

Comments
Changeset: 19e46eed Author: Sonia Zaldana Calles <szaldana@openjdk.org> Committer: Dean Long <dlong@openjdk.org> Date: 2024-05-02 01:41:09 +0000 URL: https://git.openjdk.org/jdk/commit/19e46eed580339a61fd1309c2cc7040e8c83597d
02-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19004 Date: 2024-04-29 18:11:51 +0000
29-04-2024

Good catch, looks like it was wrong since it was introduced by JDK-8203197. ILW = Wrong diagnostic output (debug only), upper limit with TraceLoopPredicate, no workaround = LLH = P5
25-04-2024