RFR: 8375618: Incorrect assert in CastLLNode::Ideal

Quan Anh Mai qamai at openjdk.org
Mon Jan 19 17:08:25 UTC 2026


Hi,

This PR fixes the incorrect assert in `CastLLNode::Ideal`. The assert intends to verify that the output is either a proper subset of or the same as the input. It does so by checking the signed lower bound and signed upper bound of the `TypeLong` instances. This method is not correct now.

Please kindly review, thanks a lot.

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

Commit messages:
 - Incorrect assertion in CastLLNode::Ideal

Changes: https://git.openjdk.org/jdk/pull/29304/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29304&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8375618
  Stats: 82 lines in 4 files changed: 77 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/29304.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29304/head:pull/29304

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


More information about the hotspot-compiler-dev mailing list