Stefan J 2

This commit is contained in:
Leo Korinth 2026-01-20 11:30:19 +01:00
parent b3ed9b0156
commit 0f21e97cb4

View File

@ -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.");