mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8183545: Event tracing, transition hooks
Reviewed-by: dcubed, egahlin
This commit is contained in:
parent
34ff291920
commit
41e729b386
5 changed files with 32 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue