changeset 10401:1286286af412

8147121: Evacuation failure allocation statistics added too late Summary: Move adding evacuation failure statistics to after free_collection_set. Reviewed-by: brutisso, drwhite
author tschatzl
date Wed, 02 Mar 2016 15:55:47 +0100
parents 7f44dc58ebb9
children bab3650ec5e6
files src/share/vm/gc/g1/g1CollectedHeap.cpp
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc/g1/g1CollectedHeap.cpp	Wed Mar 02 08:41:02 2016 +0100
+++ b/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.