hotspot/src/share/vm/gc_interface/collectedHeap.cpp
changeset 11788 bef6166c683c
parent 11636 3c07b54482a5
child 12229 c34a85c8f5aa
--- a/hotspot/src/share/vm/gc_interface/collectedHeap.cpp	Wed Feb 15 09:43:16 2012 +0100
+++ b/hotspot/src/share/vm/gc_interface/collectedHeap.cpp	Wed Feb 15 10:12:55 2012 -0800
@@ -62,7 +62,7 @@
     return;
   }
 
-  jlong timestamp = os::javaTimeNanos() / NANOSECS_PER_MILLISEC;
+  double timestamp = fetch_timestamp();
   MutexLockerEx ml(&_mutex, Mutex::_no_safepoint_check_flag);
   int index = compute_log_index();
   _records[index].thread = NULL; // Its the GC thread so it's not that interesting.
@@ -70,9 +70,9 @@
   _records[index].data.is_before = before;
   stringStream st(_records[index].data.buffer(), _records[index].data.size());
   if (before) {
-    Universe::print_heap_before_gc(&st);
+    Universe::print_heap_before_gc(&st, true);
   } else {
-    Universe::print_heap_after_gc(&st);
+    Universe::print_heap_after_gc(&st, true);
   }
 }