View locks
The locks pane displays all objects whose locks are active. An object's lock is active when a thread is executing in a synchronized block for that object.
Expand objects in the locks pane
> In the locks pane, double-click the object.
The following fields indicate the status of threads that are interacting with a lock:
- thread that currently owns the object's lock (Thread owning lock: @nnnnnnnn)
- thread is calling Object.wait() (Thread waiting for notify: @nnnnnnnn)
- thread is attempting to enter a synchronized block (Thread acquiring lock: @nnnnnnnn)
Note: The active lock status of objects is also displayed in the following panes: objects, local variables, watch, static data, processes and threads.
In the locks pane, threads that appear when you expand an object can also be expanded to investigate their state. See "View threads" for more information.
See "View the data members of a process" for more information on the format of processes appearing in the locks pane.
Related topic