8214315: G1: fatal error: acquiring lock SATB_Q_FL_lock/1 out of order with lock tty_lock/0

Add new 'tty' lock rank.

Reviewed-by: eosterlund, tschatzl
This commit is contained in:
Kim Barrett 2018-12-08 18:52:57 -05:00
parent 5c30297045
commit b80d335354
3 changed files with 9 additions and 6 deletions

View file

@ -199,7 +199,7 @@ void assert_lock_strong(const Monitor * lock) {
// Using Padded subclasses to prevent false sharing of these global monitors and mutexes.
void mutex_init() {
def(tty_lock , PaddedMutex , event, true, Monitor::_safepoint_check_never); // allow to lock in VM
def(tty_lock , PaddedMutex , tty, true, Monitor::_safepoint_check_never); // allow to lock in VM
def(CGC_lock , PaddedMonitor, special, true, Monitor::_safepoint_check_never); // coordinate between fore- and background GC
def(STS_lock , PaddedMonitor, leaf, true, Monitor::_safepoint_check_never);