Integrated: 8371316: Adjust assertion (GC pause time cannot be smaller than the sum of each phase) in G1GCPhaseTimes::print
Matthias Baesken
mbaesken at openjdk.org
Thu Nov 6 08:09:15 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).
This pull request has now been integrated.
Changeset: db76479a
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/db76479a105cda383f38f5f9857a8642ccf50cfd
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
8371316: Adjust assertion (GC pause time cannot be smaller than the sum of each phase) in G1GCPhaseTimes::print
Reviewed-by: ayang, tschatzl
-------------
PR: https://git.openjdk.org/jdk/pull/28147
More information about the hotspot-gc-dev
mailing list