8240918: [REDO] Allow direct handshakes without VMThread intervention

REDO of 8230594

Reviewed-by: dholmes, rehn, mdoerr, coleenp, dcubed
This commit is contained in:
Patricio Chilano Mateo 2020-04-08 18:32:21 +00:00
parent 51a5e9ca3c
commit 89a33e69a7
10 changed files with 369 additions and 164 deletions

View file

@ -188,7 +188,7 @@ void assert_lock_strong(const Mutex* lock) {
}
void assert_locked_or_safepoint_or_handshake(const Mutex* lock, const JavaThread* thread) {
if (Thread::current()->is_VM_thread() && thread->is_vmthread_processing_handshake()) return;
if (Thread::current() == thread->active_handshaker()) return;
assert_locked_or_safepoint(lock);
}
#endif