RFR: 8306331: assert((cnt > 0.0f) && (prob > 0.0f)) failed: Bad frequency assignment in if [v2]

Dean Long dlong at openjdk.org
Mon Apr 24 18:10:44 UTC 2023


> This change removes undefined behavior caused by signed overflow, which triggered an assert with Xcode14.3+1.0-beta1 on macos aarch64.

Dean Long has updated the pull request incrementally with two additional commits since the last revision:

 - Update src/hotspot/share/opto/parse2.cpp
   
   Co-authored-by: Tobias Hartmann <tobias.hartmann at oracle.com>
 - Update src/hotspot/share/opto/parse2.cpp
   
   Co-authored-by: Tobias Hartmann <tobias.hartmann at oracle.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13551/files
  - new: https://git.openjdk.org/jdk/pull/13551/files/9e7b087b..5e013405

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

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

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


More information about the hotspot-compiler-dev mailing list