From 0f21e97cb425207b516bdab914474fc982acbb32 Mon Sep 17 00:00:00 2001 From: Leo Korinth Date: Tue, 20 Jan 2026 11:30:19 +0100 Subject: [PATCH] Stefan J 2 --- src/hotspot/share/gc/g1/g1PeriodicGCTask.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/hotspot/share/gc/g1/g1PeriodicGCTask.cpp b/src/hotspot/share/gc/g1/g1PeriodicGCTask.cpp index 92172447cb6..f280d76f3c7 100644 --- a/src/hotspot/share/gc/g1/g1PeriodicGCTask.cpp +++ b/src/hotspot/share/gc/g1/g1PeriodicGCTask.cpp @@ -38,12 +38,6 @@ bool G1PeriodicGCTask::should_start_periodic_gc(G1CollectedHeap* g1h, // Ensure no GC safepoints while we're doing the checks, to avoid data races. SuspendibleThreadSetJoiner sts; - // We should not start a concurrent gc if concurrent marking has not been initialized yet - if (!g1h->concurrent_mark()->is_fully_initialized()) { - log_debug(gc, periodic)("Concurrent marking has not been initialized. Skipping."); - return false; - } - // If we are currently in a concurrent mark we are going to uncommit memory soon. if (g1h->concurrent_mark()->in_progress()) { log_debug(gc, periodic)("Concurrent cycle in progress. Skipping.");