@@ -443,11 +443,11 @@ if (event.should_commit()) { event.set_thread(JFR_THREAD_ID(thread)); event.commit(); } - JFR_ONLY(Jfr::on_vm_shutdown();) + JFR_ONLY(Jfr::on_vm_shutdown(thread);) // Stop the WatcherThread. We do this before disenrolling various // PeriodicTasks to reduce the likelihood of races. if (PeriodicTask::num_tasks() > 0) { WatcherThread::stop();