United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6404550 : Cannot implement late attach in NetBeans Profiler due to missing functionality in JVMTI

Details
Type:
Bug
Submit Date:
2006-03-27
Status:
Resolved
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2006-05-04
Component:
hotspot
OS:
generic
Sub-Component:
jvmti
CPU:
generic
Priority:
P1
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Duplicate:
Duplicate:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
Currently there are two problems which block successful implementation of late attach functionality in NetBeans Profiler.

1) To be able to determine time spent waiting/sleeping we use NativeMethodBind to intercept Thread.sleep and Object.wait, In the case of late attach, we cannot use NativeMethodBind. We need to be able to instrument native methods (such as mentioned Object.wait and Thread.sleep).

2) RedefineClasses/RetransformClasses doesn't work for classes in the shared archive. When the NetBeans Profiler is started at launch time, class sharing is automatically disabled by the setting of capabilities.  In the case of late attach, some classes will be in the shared archive and they can not be instrumented. We need a way how to instrument classes in shared archive.
The shared archive part of this bug should be tracked via the following:

5002268 4/3 Allow class sharing use with RedefineClasses

                                    

Comments
EVALUATION

These are blockers for NB Profiler and similar tools to be able to use the attach on demand functionality in Mustang.
                                     
2006-03-27



Hardware and Software, Engineered to Work Together