8277441: CompileQueue::add fails with assert(_last->next() == __null) failed: not last

Reviewed-by: chagedorn, neliasso
This commit is contained in:
Tobias Hartmann 2021-11-23 12:46:15 +00:00
parent 66eaf65261
commit 90f96fb4db

View File

@ -411,6 +411,7 @@ void CompileQueue::free_all() {
CompileTask::free(current);
}
_first = NULL;
_last = NULL;
// Wake up all threads that block on the queue.
MethodCompileQueue_lock->notify_all();