< prev index next >

src/share/vm/gc_implementation/g1/g1MMUTracker.cpp

Print this page

        

@@ -21,10 +21,11 @@
  * questions.
  *
  */
 
 #include "precompiled.hpp"
+#include "gc_implementation/shared/gcTrace.hpp"
 #include "gc_implementation/g1/g1MMUTracker.hpp"
 #include "runtime/mutexLocker.hpp"
 #include "utilities/ostream.hpp"
 
 #define _DISABLE_MMU                             0

@@ -103,10 +104,13 @@
   } else {
     _head_index = trim_index(_head_index + 1);
     ++_no_entries;
   }
   _array[_head_index] = G1MMUTrackerQueueElem(start, end);
+
+  double slice_time = calculate_gc_time(end);
+  G1MMUTracer::report_mmu(_time_slice, slice_time, _max_gc_time);
 }
 
 // basically the _internal call does not remove expired entries
 // this is for trying things out in the future and a couple
 // of other places (debugging)
< prev index next >