From 90d03cf69c298e7c2fa1c48215de035ef6e1b476 Mon Sep 17 00:00:00 2001 From: Thomas Schatzl Date: Tue, 10 Nov 2015 11:07:15 +0100 Subject: [PATCH] 8139874: After G1 Full GC, the next GC is always a young-only GC Allow initiation of an initial mark after Full GC Reviewed-by: ehelin --- hotspot/src/share/vm/gc/g1/g1CollectorPolicy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.cpp b/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.cpp index 6edd2368f5a..93c7cf9be5c 100644 --- a/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.cpp +++ b/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.cpp @@ -811,7 +811,7 @@ void G1CollectorPolicy::record_full_collection_end() { // transitions and make sure we start with young GCs after the Full GC. collector_state()->set_gcs_are_young(true); collector_state()->set_last_young_gc(false); - collector_state()->set_initiate_conc_mark_if_possible(false); + collector_state()->set_initiate_conc_mark_if_possible(need_to_start_conc_mark("end of Full GC", 0)); collector_state()->set_during_initial_mark_pause(false); collector_state()->set_in_marking_window(false); collector_state()->set_in_marking_window_im(false);