mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8274794: Print all owned locks in hs_err file
Reviewed-by: stuefe, dholmes
This commit is contained in:
parent
c41ce6d159
commit
819d2df8b0
8 changed files with 242 additions and 110 deletions
|
@ -169,12 +169,6 @@ extern Mutex* tty_lock; // lock to synchronize output.
|
|||
// order. If their implementations change such that these assumptions
|
||||
// are violated, a whole lot of code will break.
|
||||
|
||||
// Print all mutexes/monitors that are currently owned by a thread; called
|
||||
// by fatal error handler.
|
||||
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 / handshake)
|
||||
#ifdef ASSERT
|
||||
void assert_locked_or_safepoint(const Mutex* lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue