8020598: ObjectCountEventSender::send needs INCLUDE_TRACE guards when building OpenJDK with INCLUDE_TRACE=0
authorehelin
Tue, 13 Aug 2013 18:16:19 +0200
changeset 19290 f24424504e61
parent 19288 5eb9589687dc
child 19291 0026ec3d09e3
8020598: ObjectCountEventSender::send needs INCLUDE_TRACE guards when building OpenJDK with INCLUDE_TRACE=0 Reviewed-by: stefank, brutisso, sjohanss
hotspot/src/share/vm/gc_implementation/shared/objectCountEventSender.cpp
--- a/hotspot/src/share/vm/gc_implementation/shared/objectCountEventSender.cpp	Wed Aug 14 13:49:36 2013 +0200
+++ b/hotspot/src/share/vm/gc_implementation/shared/objectCountEventSender.cpp	Tue Aug 13 18:16:19 2013 +0200
@@ -32,6 +32,7 @@
 #if INCLUDE_SERVICES
 
 void ObjectCountEventSender::send(const KlassInfoEntry* entry, GCId gc_id, jlong timestamp) {
+#if INCLUDE_TRACE
   assert(Tracing::is_event_enabled(EventObjectCountAfterGC::eventId),
          "Only call this method if the event is enabled");
 
@@ -42,6 +43,7 @@
   event.set_totalSize(entry->words() * BytesPerWord);
   event.set_endtime(timestamp);
   event.commit();
+#endif // INCLUDE_TRACE
 }
 
 bool ObjectCountEventSender::should_send_event() {