JDK-6341303 : JVMTI Spec: Need a way how to rebind Object.wait and Thread.sleep with late attach
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-10-25
  • Updated: 2011-02-16
  • Resolved: 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 Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Duplicate :  
Description
NetBeans profiler needs an approach equivalent to NativeMethodBind, if the profiler agent attaches via the new late attach mechanism.

We use NtiveMethodBind to intercept Thread.sleep and Object.wait, to be able to determine time spent waiting/sleeping. In the case of late attach, we would not be able to use NativeMethodBind. JNI's Unregister/RegisterNatives seems to be the way to go, but we have no way to determine the current binding to be ablel to reroute it.

Comments
EVALUATION This can now be accomplished with Java programming language instrumentation, via: 6404550: missing late attach (JVM TI redefine) functionality Permit the adding or deleting of private final/static methods with redefine Closing this bug as a duplicate.
04-05-2006