mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
Stefan J 2
This commit is contained in:
parent
b3ed9b0156
commit
0f21e97cb4
@ -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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user