mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8232733: Remove need to grab Threads_lock while processing handshakes
Threads_lock is not acquired anymore while processing handshakes Reviewed-by: coleenp, rehn, dcubed, dholmes
This commit is contained in:
parent
94e8d6eca4
commit
57ece4c21a
7 changed files with 37 additions and 34 deletions
|
@ -187,6 +187,11 @@ void assert_lock_strong(const Mutex* lock) {
|
|||
if (lock->owned_by_self()) return;
|
||||
fatal("must own lock %s", lock->name());
|
||||
}
|
||||
|
||||
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;
|
||||
assert_locked_or_safepoint(lock);
|
||||
}
|
||||
#endif
|
||||
|
||||
#define def(var, type, pri, vm_block, safepoint_check_allowed ) { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue