RFR: 8367967: C2: "fatal error: Not monotonic" with Mod nodes [v3]

Hannes Greule hgreule at openjdk.org
Tue Sep 23 08:28:00 UTC 2025


> Generally, we shouldn't return a wider type (ZERO) if there is a later case that would return a more narrow type (TOP) for the same input types. If the inputs are widened and the first case doesn't match anymore but the later one still does, the result is not monotonic with the previous result.
> 
> Please review :)

Hannes Greule has updated the pull request incrementally with one additional commit since the last revision:

  move test

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27408/files
  - new: https://git.openjdk.org/jdk/pull/27408/files/ade824e0..0193749b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27408&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27408&range=01-02

  Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/27408.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27408/head:pull/27408

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


More information about the hotspot-compiler-dev mailing list