From b0fc8082f02ee5ed5e17474221aae4dd9285e78f Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Thu, 9 Nov 2023 07:36:32 +0000 Subject: [PATCH] 8319725: G1: Subtracting virtual time from wall time after JDK-8319204 Reviewed-by: ayang, iwalulya --- src/hotspot/share/gc/g1/g1ConcurrentMark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp b/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp index 0469af4b250..d41fd381e23 100644 --- a/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp +++ b/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp @@ -2760,7 +2760,7 @@ void G1CMTask::do_marking_step(double time_target_ms, // Separated the asserts so that we know which one fires. assert(_cm->out_of_regions(), "only way to reach here"); assert(_task_queue->size() == 0, "only way to reach here"); - double termination_start_time_ms = os::elapsedVTime() * 1000.0; + double termination_start_time_ms = os::elapsedTime() * 1000.0; // The G1CMTask class also extends the TerminatorTerminator class, // hence its should_exit_termination() method will also decide