Integrated: 8274794: Print all owned locks in hs_err file
    Coleen Phillimore 
    coleenp at openjdk.java.net
       
    Thu Oct 21 11:32:14 UTC 2021
    
    
  
On Thu, 14 Oct 2021 20:51:44 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> See CR for details.  This saves the created mutex in a mutex_array during Mutex construction so that all Mutex, not just the ones in mutexLocker.cpp can be printed in the hs_err file.  ThreadCritical is used to protect the mutex_array, and to avoid UB should be used when printing the owned locks, but since that is done during error handling, this seemed better not to lock during error handling.  There's 0 probability that another thread will be creating a lock during this error handling anyway.
> Tested with tier1-8.
This pull request has now been integrated.
Changeset: 819d2df8
Author:    Coleen Phillimore <coleenp at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/819d2df8b01e04bcc89a0a995e21b68799f890be
Stats:     338 lines in 8 files changed: 228 ins; 96 del; 14 mod
8274794: Print all owned locks in hs_err file
Reviewed-by: stuefe, dholmes
-------------
PR: https://git.openjdk.java.net/jdk/pull/5958
    
    
More information about the hotspot-dev
mailing list