mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8230594: Allow direct handshakes without VMThread intervention
Introduce direct handshakes and enable it for biased locking revocations. Reviewed-by: dholmes, dcubed, coleenp, rehn
This commit is contained in:
parent
b21e04af5d
commit
b25bb17b41
9 changed files with 343 additions and 158 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -189,7 +189,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->get_active_handshaker()) return;
|
||||
assert_locked_or_safepoint(lock);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue