JDK 18 |
---|
18 masterFixed |
Relates :
|
|
Relates :
|
|
Relates :
|
JDK-8275804 :
|
The Thread::_owned_locks field and printing is only available in debug mode. It would be better if it can be used to print all the owned locks in the hs_err_pid file and not just those defined in mutexLocker.cpp. Instead have the mutex_array be populated in the Mutex constructor under a ThreadCritical lock. There are some Mutex added after initialization in mutexLocker.cpp but the overhead of saving these is minimal. This way all held locks will be printed in the hs_err file.
|