changeset 4521:97eb1ea6bae8

8011891: The vm/gc/heap/heap_summary_after_gc event for CMS contains old data Reviewed-by: brutisso, stefank
author ehelin
date Tue, 21 May 2013 20:29:00 +0200
parents 87978e19157c
children cea88a661227
files src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp	Mon May 20 23:14:39 2013 -0700
+++ b/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp	Tue May 21 20:29:00 2013 +0200
@@ -1892,6 +1892,10 @@
       save_heap_summary();
     }
 
+    if (first_state > Idling) {
+      save_heap_summary();
+    }
+
     do_compaction_work(clear_all_soft_refs);
 
     // Has the GC time limit been exceeded?