JDK-6404550 : Cannot implement late attach in NetBeans Profiler due to missing functionality in JVMTI
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: hotspot
  • Sub-Component: jvmti
  • Priority: P1
  • Affected Version: 6
  • OS: generic
  • CPU: generic
  • Submit Date: 2006-03-27
  • Updated Date: 2011-02-16
  • Resolved Date: 2006-05-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 6
6 b83Resolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
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