mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8158033: Notify_tracing() misplaced for intended purpose
Reviewed-by: egahlin, dholmes
This commit is contained in:
parent
9eeb285818
commit
de7ab979ec
5 changed files with 13 additions and 21 deletions
|
@ -446,6 +446,14 @@ void before_exit(JavaThread* thread) {
|
|||
os::infinite_sleep();
|
||||
}
|
||||
|
||||
EventThreadEnd event;
|
||||
if (event.should_commit()) {
|
||||
event.set_thread(THREAD_TRACE_ID(thread));
|
||||
event.commit();
|
||||
}
|
||||
|
||||
TRACE_VM_EXIT();
|
||||
|
||||
// Stop the WatcherThread. We do this before disenrolling various
|
||||
// PeriodicTasks to reduce the likelihood of races.
|
||||
if (PeriodicTask::num_tasks() > 0) {
|
||||
|
@ -484,13 +492,6 @@ void before_exit(JavaThread* thread) {
|
|||
JvmtiExport::post_thread_end(thread);
|
||||
}
|
||||
|
||||
|
||||
EventThreadEnd event;
|
||||
if (event.should_commit()) {
|
||||
event.set_thread(THREAD_TRACE_ID(thread));
|
||||
event.commit();
|
||||
}
|
||||
|
||||
// Always call even when there are not JVMTI environments yet, since environments
|
||||
// may be attached late and JVMTI must track phases of VM execution
|
||||
JvmtiExport::post_vm_death();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue