8274794: Print all owned locks in hs_err file

Reviewed-by: stuefe, dholmes
This commit is contained in:
Coleen Phillimore 2021-10-21 11:28:22 +00:00
parent c41ce6d159
commit 819d2df8b0
8 changed files with 242 additions and 110 deletions

View file

@ -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);