[jdk17] RFR: 8268366 Incorrect calculation of has_fpu_registers in C1 linear scan

Dean Long dlong at openjdk.java.net
Thu Jun 10 23:55:10 UTC 2021


If there is a mismatch between bytecode use of floating point and generated IR, has_fpu_registers can get an incorrect value and result in a crash or assert.  This PR restores an assert that was removed, adds a bailout for non-debug builds, and adds a test.

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

Commit messages:
 - fix incorrect calculation of has_fpu_registers in C1 and add test

Changes: https://git.openjdk.java.net/jdk17/pull/10/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=10&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8268366
  Stats: 74 lines in 2 files changed: 67 ins; 1 del; 6 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/10.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/10/head:pull/10

PR: https://git.openjdk.java.net/jdk17/pull/10


More information about the hotspot-compiler-dev mailing list