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:
Patricio Chilano Mateo 2019-12-13 14:28:22 +00:00
parent 94e8d6eca4
commit 57ece4c21a
7 changed files with 37 additions and 34 deletions

View file

@ -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 ) { \