mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8238761: Asynchronous handshakes
Reviewed-by: pchilanomate, dcubed, dholmes, coleenp, sspitsyn
This commit is contained in:
parent
6d19fe65d1
commit
6bddeb709d
24 changed files with 975 additions and 375 deletions
|
@ -193,7 +193,7 @@ void assert_lock_strong(const Mutex* lock) {
|
|||
}
|
||||
|
||||
void assert_locked_or_safepoint_or_handshake(const Mutex* lock, const JavaThread* thread) {
|
||||
if (Thread::current() == thread->active_handshaker()) return;
|
||||
if (thread->is_handshake_safe_for(Thread::current())) return;
|
||||
assert_locked_or_safepoint(lock);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue