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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1
    • 6
    • 6
    • hotspot
    • 6
    • b83
    • generic
    • 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

              rfield Robert Field (Inactive)
              thurka Tomáš Hůrka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: