Stefan J 4

This commit is contained in:
Leo Korinth 2026-01-21 11:49:12 +01:00
parent ac4b803a0e
commit 203d119795
2 changed files with 3 additions and 1 deletions

View File

@ -2727,6 +2727,8 @@ void G1CollectedHeap::do_collection_pause_at_safepoint(size_t allocation_word_si
_bytes_used_during_gc = 0;
_cm->fully_initialize();
policy()->decide_on_concurrent_start_pause();
// Record whether this pause may need to trigger a concurrent operation. Later,
// when we signal the G1ConcurrentMarkThread, the collector state has already

View File

@ -1124,7 +1124,7 @@ G1YoungCollector::G1YoungCollector(GCCause::Cause gc_cause,
}
void G1YoungCollector::collect() {
_g1h->_cm->fully_initialize();
// _g1h->_cm->fully_initialize();
// Do timing/tracing/statistics/pre- and post-logging/verification work not
// directly related to the collection. They should not be accounted for in
// collection work timing.