|
Quick Lists
|
|
Bug ID:
|
5086475
|
|
Votes
|
0
|
|
Synopsis
|
Ctrl-break handler should print the java.util.concurrent locks info
|
|
Category
|
java:serviceability
|
|
Reported Against
|
tiger-rc
|
|
Release Fixed
|
mustang(b39)
|
|
State
|
10-Fix Delivered,
request for enhancement
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
5086470
|
|
Submit Date
|
12-AUG-2004
|
|
Description
|
The java.util.concurrent locks are not known to the VM. Ctrl-break
handler and M&M API only provide lock information for the customer
monitors but not Java-level JSR-166 primitives.
The dumping mechanism should be enhanced to include the JSR-166
locks information.
See comments in 5086470 for the email thread about this request.
|
|
Work Around
|
N/A
|
|
Evaluation
|
Will consider this in Mustang.
xxxxx@xxxxx 2004-08-12
The control-break (Windows) and SIGQUIT output are improved:
1. to print out the java.util.concurrent.locks lock that a thread is blocked on (i.e. the object responsible for the thread parking).
2. to find deadlocks involving both object monitors and java.util.concurrent locks.
3. to print out the list of all java.util.concurrent.locks owned by each thread if -XX:+PrintConcurrentLocks is set.
4. to print out the java.lang.Thread.State a thread is at.
Note that VM will only provide this monitoring and diagnostic support for any synchronizers that use AbstractOwnableSynchronizer to implement its synchronization mechanism. A customized synchronizer (user-defined ones) that does not set the exclusive owner when granting a lock to thread and does not set the object responsible for the thread parking at contention time will have no information printed in the control-break/SIGQUIT output.
See 5086470 for details.
xxxxx@xxxxx 2005-05-20 23:18:56 GMT
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |