mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +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
|
@ -174,15 +174,17 @@ void print_owned_locks_on_error(outputStream* st);
|
|||
|
||||
char *lock_name(Mutex *mutex);
|
||||
|
||||
// for debugging: check that we're already owning this lock (or are at a safepoint)
|
||||
// for debugging: check that we're already owning this lock (or are at a safepoint / handshake)
|
||||
#ifdef ASSERT
|
||||
void assert_locked_or_safepoint(const Mutex* lock);
|
||||
void assert_locked_or_safepoint_weak(const Mutex* lock);
|
||||
void assert_lock_strong(const Mutex* lock);
|
||||
void assert_locked_or_safepoint_or_handshake(const Mutex* lock, const JavaThread* thread);
|
||||
#else
|
||||
#define assert_locked_or_safepoint(lock)
|
||||
#define assert_locked_or_safepoint_weak(lock)
|
||||
#define assert_lock_strong(lock)
|
||||
#define assert_locked_or_safepoint_or_handshake(lock, thread)
|
||||
#endif
|
||||
|
||||
class MutexLocker: public StackObj {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue