8239886: Minimal VM build fails after JDK-8237499

Reviewed-by: dholmes
This commit is contained in:
Jie Fu 2020-02-25 10:34:33 +08:00
parent 9c35471ae0
commit 5a7b5863f0

View File

@ -3660,11 +3660,14 @@ static void post_thread_start_event(const JavaThread* jt) {
if (event.should_commit()) {
event.set_thread(JFR_THREAD_ID(jt));
event.set_parentThread((traceid)0);
#if INCLUDE_JFR
if (EventThreadStart::is_stacktrace_enabled()) {
jt->jfr_thread_local()->set_cached_stack_trace_id((traceid)0);
event.commit();
jt->jfr_thread_local()->clear_cached_stack_trace();
} else {
} else
#endif
{
event.commit();
}
}