equal
deleted
inserted
replaced
60 bool jfr_has_stacktrace_enabled(JfrEventId id) { |
60 bool jfr_has_stacktrace_enabled(JfrEventId id) { |
61 return JfrEventSetting::has_stacktrace(id); |
61 return JfrEventSetting::has_stacktrace(id); |
62 } |
62 } |
63 |
63 |
64 void jfr_conditional_flush(JfrEventId id, size_t size, Thread* t) { |
64 void jfr_conditional_flush(JfrEventId id, size_t size, Thread* t) { |
65 assert(jfr_is_event_enabled(id), "invariant"); |
|
66 if (t->jfr_thread_local()->has_native_buffer()) { |
65 if (t->jfr_thread_local()->has_native_buffer()) { |
67 JfrStorage::Buffer* const buffer = t->jfr_thread_local()->native_buffer(); |
66 JfrStorage::Buffer* const buffer = t->jfr_thread_local()->native_buffer(); |
68 if (LessThanSize<JfrStorage::Buffer>::evaluate(buffer, size)) { |
67 if (LessThanSize<JfrStorage::Buffer>::evaluate(buffer, size)) { |
69 JfrFlush f(buffer, 0, 0, t); |
68 JfrFlush f(buffer, 0, 0, t); |
70 } |
69 } |