8309637: runtime/handshake/HandshakeTimeoutTest.java fails with "has not cleared handshake op" and SIGILL

Reviewed-by: dholmes, coleenp
This commit is contained in:
Patricio Chilano Mateo 2023-07-10 19:09:27 +00:00
parent 63f32fbe97
commit 57e7e82fa1
5 changed files with 34 additions and 34 deletions

View file

@ -471,9 +471,7 @@ void before_exit(JavaThread* thread, bool halt) {
// Stop the WatcherThread. We do this before disenrolling various
// PeriodicTasks to reduce the likelihood of races.
if (PeriodicTask::num_tasks() > 0) {
WatcherThread::stop();
}
WatcherThread::stop();
// shut down the StatSampler task
StatSampler::disengage();