Integrated: 8332717: ZGC: Division by zero in heuristics
Erik Österlund
eosterlund at openjdk.org
Thu Jun 20 05:25:20 UTC 2024
On Tue, 18 Jun 2024 12:15:04 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:
> Before we have run the first major collection, the "time to perform GC" is considered not stable. We missed once such check when computing how many old GC threads we should use compared to young GC threads, resulting in a division by zero when starting the first "warmup" major collection. This division by zero is detected by UBSan. I added a check for unstable times like we have in many other places, which I have verified removes the problem.
This pull request has now been integrated.
Changeset: 2d4185f4
Author: Erik Österlund <eosterlund at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2d4185f4f1def7c32d1a556521e26ec656234220
Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod
8332717: ZGC: Division by zero in heuristics
Reviewed-by: aboldtch, shade
-------------
PR: https://git.openjdk.org/jdk/pull/19768
More information about the hotspot-gc-dev
mailing list