8147121: Evacuation failure allocation statistics added too late
authortschatzl
Wed, 02 Mar 2016 15:55:47 +0100
changeset 36389 1df45f48022b
parent 36387 1c1c1c1aa3ad
child 36390 a2d991d1d628
8147121: Evacuation failure allocation statistics added too late Summary: Move adding evacuation failure statistics to after free_collection_set. Reviewed-by: brutisso, drwhite
hotspot/src/share/vm/gc/g1/g1CollectedHeap.cpp
--- a/hotspot/src/share/vm/gc/g1/g1CollectedHeap.cpp	Wed Mar 02 08:41:02 2016 +0100
+++ b/hotspot/src/share/vm/gc/g1/g1CollectedHeap.cpp	Wed Mar 02 15:55:47 2016 +0100
@@ -3384,6 +3384,10 @@
 
         g1_policy()->clear_collection_set();
 
+        record_obj_copy_mem_stats();
+        _survivor_evac_stats.adjust_desired_plab_sz();
+        _old_evac_stats.adjust_desired_plab_sz();
+
         // Start a new incremental collection set for the next pause.
         g1_policy()->start_incremental_cset_building();
 
@@ -4701,11 +4705,6 @@
 
   merge_per_thread_state_info(per_thread_states);
 
-  record_obj_copy_mem_stats();
-
-  _survivor_evac_stats.adjust_desired_plab_sz();
-  _old_evac_stats.adjust_desired_plab_sz();
-
   // Reset and re-enable the hot card cache.
   // Note the counts for the cards in the regions in the
   // collection set are reset when the collection set is freed.