8375282: G1: Fix wrong indendation introduced by JDK-8374743

Reviewed-by: kbarrett
This commit is contained in:
Thomas Schatzl 2026-01-15 11:16:00 +00:00
parent bf0da3dd5c
commit f6e5c885e7

View File

@ -687,8 +687,8 @@ HeapWord* G1CollectedHeap::attempt_allocation_humongous(size_t word_size) {
// before the allocation is that we avoid having to keep track of the newly
// allocated memory while we do a GC.
// Only try that if we can actually perform a GC.
if (is_init_completed() && policy()->need_to_start_conc_mark("concurrent humongous allocation",
word_size)) {
if (is_init_completed() &&
policy()->need_to_start_conc_mark("concurrent humongous allocation", word_size)) {
try_collect(word_size, GCCause::_g1_humongous_allocation, collection_counters(this));
}