hotspot/src/share/vm/gc/parallel/psParallelCompact.cpp
changeset 35939 05df7e64ecfc
parent 35901 f5028c67e7cb
child 36581 8d65a7db1582
--- a/hotspot/src/share/vm/gc/parallel/psParallelCompact.cpp	Thu Feb 04 23:39:27 2016 +0000
+++ b/hotspot/src/share/vm/gc/parallel/psParallelCompact.cpp	Fri Feb 05 08:59:36 2016 +0100
@@ -1746,8 +1746,6 @@
     heap->record_gen_tops_before_GC();
   }
 
-  heap->pre_full_gc_dump(&_gc_timer);
-
   // Make sure data structures are sane, make the heap parsable, and do other
   // miscellaneous bookkeeping.
   pre_compact();
@@ -1768,6 +1766,9 @@
 
     GCTraceCPUTime tcpu;
     GCTraceTime(Info, gc) tm("Pause Full", NULL, gc_cause, true);
+
+    heap->pre_full_gc_dump(&_gc_timer);
+
     TraceCollectorStats tcs(counters());
     TraceMemoryManagerStats tms(true /* Full GC */,gc_cause);
 
@@ -1902,6 +1903,8 @@
     MemoryService::track_memory_usage();
     heap->update_counters();
     gc_task_manager()->release_idle_workers();
+
+    heap->post_full_gc_dump(&_gc_timer);
   }
 
 #ifdef ASSERT
@@ -1940,8 +1943,6 @@
                          collection_exit.ticks());
   gc_task_manager()->print_task_time_stamps();
 
-  heap->post_full_gc_dump(&_gc_timer);
-
 #ifdef TRACESPINNING
   ParallelTaskTerminator::print_termination_counts();
 #endif