8237488: jdk/jfr/event/compiler/TestCompilerCompile.java failed due to "RuntimeException: No thread in event"

Reviewed-by: egahlin
This commit is contained in:
Markus Grönlund 2020-07-02 21:13:41 +02:00
parent dc0c0c7eca
commit 5a90271d01
9 changed files with 25 additions and 27 deletions

View file

@ -95,9 +95,11 @@
#if INCLUDE_CDS
#include "classfile/systemDictionaryShared.hpp"
#endif
#if INCLUDE_JFR
#include "jfr/jfr.hpp"
#endif
#include <errno.h>
#include <jfr/recorder/jfrRecorder.hpp>
/*
NOTE about use of any ctor or function call that can trigger a safepoint/GC:
@ -3076,7 +3078,7 @@ JVM_ENTRY(void, JVM_StartThread(JNIEnv* env, jobject jthread))
}
#if INCLUDE_JFR
if (JfrRecorder::is_recording() && EventThreadStart::is_enabled() &&
if (Jfr::is_recording() && EventThreadStart::is_enabled() &&
EventThreadStart::is_stacktrace_enabled()) {
JfrThreadLocal* tl = native_thread->jfr_thread_local();
// skip Thread.start() and Thread.start0()