public List < MonitorInfo > getMonitorLockedElements ( final ThreadInfo threadInfo , final StackTraceElement stackTraceElement ) { final Map < StackTraceElement , List < MonitorInfo > > elementMap = monitorLockedElements . get ( threadInfo ) ; if ( null == elementMap ) { return Collections . EMPTY_LIST ; } final List < MonitorInfo > monitorList = elementMap . get ( stackTraceElement ) ; if ( null == monitorList ) { return Collections . EMPTY_LIST ; } return monitorList ; }
Get a list of monitor locks that were acquired by this thread at this stack element .