提交 5e443ff9 编写于 作者: M mgronlun

8224172: assert(jfr_is_event_enabled(id)) failed: invariant

Reviewed-by: dcubed, dholmes
上级 91ec1b72
...@@ -62,7 +62,6 @@ bool jfr_has_stacktrace_enabled(JfrEventId id) { ...@@ -62,7 +62,6 @@ bool jfr_has_stacktrace_enabled(JfrEventId id) {
} }
void jfr_conditional_flush(JfrEventId id, size_t size, Thread* t) { 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()) { if (t->jfr_thread_local()->has_native_buffer()) {
JfrStorage::Buffer* const buffer = t->jfr_thread_local()->native_buffer(); JfrStorage::Buffer* const buffer = t->jfr_thread_local()->native_buffer();
if (LessThanSize<JfrStorage::Buffer>::evaluate(buffer, size)) { if (LessThanSize<JfrStorage::Buffer>::evaluate(buffer, size)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册