RFR: 8333728: ubsan: shenandoahFreeSet.cpp:1347:24: runtime error: division by zero
Aleksey Shipilev
shade at openjdk.org
Fri Jul 19 21:31:02 UTC 2024
On Fri, 12 Jul 2024 20:50:30 GMT, Henry Lin <duke at openjdk.org> wrote:
> Changed the check to require `linear` to be nonzero to prevent division by zero errors report by `ubsan`. `linear > 0` implies that `count > 0` so the count variable is no longer necessary.
This looks good, thanks.
-------------
Marked as reviewed by shade (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/20163#pullrequestreview-2178114899
More information about the hotspot-gc-dev
mailing list