United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5024119 Add ReferenceType.getAllInstances () method to JDI.
JDK-5024119 : Add ReferenceType.getAllInstances () method to JDI.

Details
Type:
Enhancement
Submit Date:
2004-03-31
Status:
Resolved
Updated Date:
2005-11-21
Project Name:
JDK
Resolved Date:
2005-05-14
Component:
core-svc
OS:
generic,windows_2000
Sub-Component:
debugger
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2_06,5.0
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

Description
Current Java debuggers does not support memory leaks fixing. 
If you add 
ReferenceType.getAllInstances () and
ObjectReference.getAllReferences ()
methods we can do much more poverful tool from our debugger!

###@###.### 2004-03-31

                                    

Comments
EVALUATION

4932038 tracks a similiar requirement. 

This RFE will track adding the method(s) to get instances.
Companion RFE 
   5089849 Add support for backtracking reference graph.

will be used to tracking adding the method(s) to get references.

###@###.### 2005-04-06 17:08:08 GMT
                                     
2005-04-06
SUGGESTED FIX

Add this to VirtualMachine:
    int[] instanceCounts(List<ReferenceType> classes);

And add this to ReferenceType:
    List<ObjectReference> instances(int maxInstances);

###@###.### 2005-04-06 17:08:08 GMT

See attached webrev 5024119.tar.
###@###.### 2005-04-26 17:58:44 GMT
                                     
2005-04-06



Hardware and Software, Engineered to Work Together