mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8240918: [REDO] Allow direct handshakes without VMThread intervention
REDO of 8230594 Reviewed-by: dholmes, rehn, mdoerr, coleenp, dcubed
This commit is contained in:
parent
51a5e9ca3c
commit
89a33e69a7
10 changed files with 369 additions and 164 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue