RFR: 8333088: ubsan: shenandoahAdaptiveHeuristics.cpp:245:44: runtime error: division by zero

Henry Lin duke at openjdk.org
Fri Jul 19 21:30:54 UTC 2024


Changed comparison to multiplication to prevent division by zero errors reported by ubsan.

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

Commit messages:
 - 8333088: fix ubsan:shenandoahAdaptiveHeuristics divide by zero

Changes: https://git.openjdk.org/jdk/pull/20161/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20161&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8333088
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/20161.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20161/head:pull/20161

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


More information about the hotspot-gc-dev mailing list