Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6341303

JVMTI Spec: Need a way how to rebind Object.wait and Thread.sleep with late attach

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • 6
    • 6
    • hotspot
    • None
    • generic
    • generic

      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.

            rfield Robert Field (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: