# HG changeset patch # User ehelin # Date 1376572848 25200 # Node ID 33d39b75663ffcfd65ab5fab4a4b41cb3e284185 # Parent bd902affe1024e20fa9c48df1602049cb7d68864# Parent 274ce305e5b987c08252a86957397d8fab47f69c Merge diff -r bd902affe102 -r 33d39b75663f src/share/vm/gc_implementation/shared/objectCountEventSender.cpp --- a/src/share/vm/gc_implementation/shared/objectCountEventSender.cpp Thu Aug 15 10:05:50 2013 +0200 +++ b/src/share/vm/gc_implementation/shared/objectCountEventSender.cpp Thu Aug 15 06:20:48 2013 -0700 @@ -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() {