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

Cannot implement late attach in NetBeans Profiler due to missing functionality in JVMTI

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      6
    • Resolved In Build:
      b83
    • CPU:
      generic
    • OS:
      generic

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfield Robert Field
                Reporter:
                thurka Tomáš Hůrka
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: