mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8020598: ObjectCountEventSender::send needs INCLUDE_TRACE guards when building OpenJDK with INCLUDE_TRACE=0
Reviewed-by: stefank, brutisso, sjohanss
This commit is contained in:
parent
dab6bdc071
commit
b42a7171ab
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
#if INCLUDE_SERVICES
|
#if INCLUDE_SERVICES
|
||||||
|
|
||||||
void ObjectCountEventSender::send(const KlassInfoEntry* entry, GCId gc_id, jlong timestamp) {
|
void ObjectCountEventSender::send(const KlassInfoEntry* entry, GCId gc_id, jlong timestamp) {
|
||||||
|
#if INCLUDE_TRACE
|
||||||
assert(Tracing::is_event_enabled(EventObjectCountAfterGC::eventId),
|
assert(Tracing::is_event_enabled(EventObjectCountAfterGC::eventId),
|
||||||
"Only call this method if the event is enabled");
|
"Only call this method if the event is enabled");
|
||||||
|
|
||||||
|
@ -42,6 +43,7 @@ void ObjectCountEventSender::send(const KlassInfoEntry* entry, GCId gc_id, jlong
|
||||||
event.set_totalSize(entry->words() * BytesPerWord);
|
event.set_totalSize(entry->words() * BytesPerWord);
|
||||||
event.set_endtime(timestamp);
|
event.set_endtime(timestamp);
|
||||||
event.commit();
|
event.commit();
|
||||||
|
#endif // INCLUDE_TRACE
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ObjectCountEventSender::should_send_event() {
|
bool ObjectCountEventSender::should_send_event() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue