RFR: 8371316: Adjust assertion (GC pause time cannot be smaller than the sum of each phase) in G1GCPhaseTimes::print
Thomas Schatzl
tschatzl at openjdk.org
Wed Nov 5 17:02:22 UTC 2025
On Wed, 5 Nov 2025 10:11:42 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> it has been observed that the assertion (GC pause time cannot be smaller than the sum of each phase) in G1GCPhaseTimes::print cuts off the printed values, this should be adjusted to see the real values in error situations.
> The current assert prints misleading messages like this (see [JDK-8370063](https://bugs.openjdk.org/browse/JDK-8370063)) :
>
>
> # Internal Error (d:\priv\jenkins\ci2\client-home\workspace\openjdk-jdk-windows_x86_64-dbg\jdk\src\hotspot\share\gc\g1\g1GCPhaseTimes.cpp:571), pid=8976, tid=24744
> # assert(_gc_pause_time_ms >= accounted_ms) failed: GC pause time(0.001ms) cannot be smaller than the sum of each phase(0.001ms).
Marked as reviewed by tschatzl (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/28147#pullrequestreview-3423309557
More information about the hotspot-gc-dev
mailing list