8183545: Event tracing, transition hooks

Reviewed-by: dcubed, egahlin
This commit is contained in:
Robbin Ehn 2017-07-07 23:04:06 +02:00
parent 34ff291920
commit 41e729b386
5 changed files with 32 additions and 8 deletions

View file

@ -2193,6 +2193,11 @@ void JavaThread::handle_special_runtime_exit_condition(bool check_asyncs) {
if (check_asyncs) {
check_and_handle_async_exceptions();
}
#if INCLUDE_TRACE
if (is_trace_suspend()) {
TRACE_SUSPEND_THREAD(this);
}
#endif
}
void JavaThread::send_thread_stop(oop java_throwable) {
@ -2423,6 +2428,11 @@ void JavaThread::check_safepoint_and_suspend_for_native_trans(JavaThread *thread
fatal("missed deoptimization!");
}
}
#if INCLUDE_TRACE
if (thread->is_trace_suspend()) {
TRACE_SUSPEND_THREAD(thread);
}
#endif
}
// Slow path when the native==>VM/Java barriers detect a safepoint is in