8020598: ObjectCountEventSender::send needs INCLUDE_TRACE guards when building OpenJDK with INCLUDE_TRACE=0

Tue, 13 Aug 2013 18:16:19 +0200

author
ehelin
date
Tue, 13 Aug 2013 18:16:19 +0200
changeset 5520
274ce305e5b9
parent 5518
5d9995d16b26
child 5521
33d39b75663f

8020598: ObjectCountEventSender::send needs INCLUDE_TRACE guards when building OpenJDK with INCLUDE_TRACE=0
Reviewed-by: stefank, brutisso, sjohanss

src/share/vm/gc_implementation/shared/objectCountEventSender.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/gc_implementation/shared/objectCountEventSender.cpp	Wed Aug 14 13:49:36 2013 +0200
     1.2 +++ b/src/share/vm/gc_implementation/shared/objectCountEventSender.cpp	Tue Aug 13 18:16:19 2013 +0200
     1.3 @@ -32,6 +32,7 @@
     1.4  #if INCLUDE_SERVICES
     1.5  
     1.6  void ObjectCountEventSender::send(const KlassInfoEntry* entry, GCId gc_id, jlong timestamp) {
     1.7 +#if INCLUDE_TRACE
     1.8    assert(Tracing::is_event_enabled(EventObjectCountAfterGC::eventId),
     1.9           "Only call this method if the event is enabled");
    1.10  
    1.11 @@ -42,6 +43,7 @@
    1.12    event.set_totalSize(entry->words() * BytesPerWord);
    1.13    event.set_endtime(timestamp);
    1.14    event.commit();
    1.15 +#endif // INCLUDE_TRACE
    1.16  }
    1.17  
    1.18  bool ObjectCountEventSender::should_send_event() {

mercurial