United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4401399 JPDA: Request for events for monitor acquisitions
JDK-4401399 : JPDA: Request for events for monitor acquisitions

Details
Type:
Enhancement
Submit Date:
2001-01-03
Status:
Resolved
Updated Date:
2005-06-02
Project Name:
JDK
Resolved Date:
2005-06-02
Component:
core-svc
OS:
generic
Sub-Component:
debugger
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.3.0,6
Fixed Versions:

Related Reports
Duplicate:
Relates:

Sub Tasks

Description

Name: tb29552			Date: 01/03/2001


java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


It would be nice if the JPDA allowed one to set breakpoints when threads
acquire or release monitor locks. Currently, one can only obtain a list of
owned monitors and the current contended monitor for each thread in the
debuggee. Specifically one would want to set breakpoints for when:

1) A specified thread (e.g., "Thread-3") acquires or
releases *any* monitor lock,

2) A specified thread (e.g., "Thread-3") acquires or
releases a *specified* monitor lock,

3) *Any* thread acquires or releases a *specified*
monitor lock.

(Review ID: 114479) 
======================================================================

                                    

Comments
EVALUATION

We plan to implement ContendedMonitorEnter and ContendedMonitorEntered
events.  

###@###.### 2005-2-18 02:11:22 GMT

See also:
     6230699 Need to be able to get the location at which a monitor was acquired 

###@###.### 2005-2-18 02:19:15 GMT
                                     
2005-02-18
SUGGESTED FIX


See webrev for suggested fix: This webrev contain fix for other feature 6230699.

file:///net/jano.sfbay/export/disk31/serviceability/swamyv/webrev/jdi-monitor/index.html
###@###.### 2005-05-20 17:40:18 GMT
                                     
2005-05-20



Hardware and Software, Engineered to Work Together