# HG changeset patch # User ehelin # Date 1376410579 -7200 # Node ID 274ce305e5b987c08252a86957397d8fab47f69c # Parent 5d9995d16b26e9b46f3f690a6773c5c8a937eabf 8020598: ObjectCountEventSender::send needs INCLUDE_TRACE guards when building OpenJDK with INCLUDE_TRACE=0 Reviewed-by: stefank, brutisso, sjohanss diff -r 5d9995d16b26 -r 274ce305e5b9 src/share/vm/gc_implementation/shared/objectCountEventSender.cpp --- a/src/share/vm/gc_implementation/shared/objectCountEventSender.cpp Wed Aug 14 13:49:36 2013 +0200 +++ b/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() {