From b3b7f9f7dc9b2d478f08b8a6c2a97c742b06eaad Mon Sep 17 00:00:00 2001 From: Patrick Fontanilla Date: Mon, 8 Jun 2026 23:36:56 +0000 Subject: [PATCH] 8386202: Genshen: Incorrect units in regulator thread --- src/hotspot/share/gc/shenandoah/shenandoahRegulatorThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/shenandoah/shenandoahRegulatorThread.cpp b/src/hotspot/share/gc/shenandoah/shenandoahRegulatorThread.cpp index 28094a1d57d..f301b182007 100644 --- a/src/hotspot/share/gc/shenandoah/shenandoahRegulatorThread.cpp +++ b/src/hotspot/share/gc/shenandoah/shenandoahRegulatorThread.cpp @@ -132,7 +132,7 @@ void ShenandoahRegulatorThread::regulator_sleep() { _young_heuristics->update_should_start_query_times(_most_recent_wake_time, double(_sleep) / 1000.0); if (LogTarget(Debug, gc, thread)::is_enabled()) { double elapsed = _most_recent_wake_time - before_sleep_time; - double hiccup = elapsed - double(_sleep); + double hiccup = elapsed - double(_sleep) / 1000.0; if (hiccup > 0.001) { log_debug(gc, thread)("Regulator hiccup time: %.3fs", hiccup); }