diff --git a/src/share/vm/jfr/support/jfrFlush.cpp b/src/share/vm/jfr/support/jfrFlush.cpp index ab5e289a17484b8dfb4f41461e0c6f71e9fd00ef..3f1402fc4b111d87a0dda9d261b379ecb5626bc6 100644 --- a/src/share/vm/jfr/support/jfrFlush.cpp +++ b/src/share/vm/jfr/support/jfrFlush.cpp @@ -62,7 +62,6 @@ bool jfr_has_stacktrace_enabled(JfrEventId id) { } void jfr_conditional_flush(JfrEventId id, size_t size, Thread* t) { - assert(jfr_is_event_enabled(id), "invariant"); if (t->jfr_thread_local()->has_native_buffer()) { JfrStorage::Buffer* const buffer = t->jfr_thread_local()->native_buffer(); if (LessThanSize::evaluate(buffer, size)) {