diff src/share/vm/gc_implementation/shared/gcTraceSend.cpp @ 11113:2cbc8f3011a0

8015972: Refactor the sending of the object count after GC event Reviewed-by: brutisso, pliden
author ehelin
date Wed, 05 Jun 2013 09:44:03 +0200
parents f2110083203d
children f175e3678be2
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/gcTraceSend.cpp	Thu Jul 04 14:56:49 2013 -0700
+++ b/src/share/vm/gc_implementation/shared/gcTraceSend.cpp	Wed Jun 05 09:44:03 2013 +0200
@@ -123,27 +123,6 @@
   }
 }
 
-#if INCLUDE_SERVICES
-void GCTracer::send_object_count_after_gc_event(Klass* klass, jlong count, julong total_size) const {
-  EventObjectCountAfterGC e;
-  if (e.should_commit()) {
-    e.set_gcId(_shared_gc_info.id());
-    e.set_class(klass);
-    e.set_count(count);
-    e.set_totalSize(total_size);
-    e.commit();
-  }
-}
-#endif
-
-bool GCTracer::should_send_object_count_after_gc_event() const {
-#if INCLUDE_TRACE
-  return Tracing::is_event_enabled(EventObjectCountAfterGC::eventId);
-#else
-  return false;
-#endif
-}
-
 #if INCLUDE_ALL_GCS
 void G1NewTracer::send_g1_young_gc_event() {
   EventGCG1GarbageCollection e(UNTIMED);