8224172: assert(jfr_is_event_enabled(id)) failed: invariant
Reviewed-by: dcubed, dholmes
--- a/src/hotspot/share/jfr/support/jfrFlush.cpp Thu May 30 10:21:51 2019 +0200
+++ b/src/hotspot/share/jfr/support/jfrFlush.cpp Thu May 30 11:42:53 2019 +0200
@@ -62,7 +62,6 @@
}
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<JfrStorage::Buffer>::evaluate(buffer, size)) {