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

CompiledMethodLoad reports incorrect addresses in the location map

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • hotspot
    • None
    • b23
    • generic
    • generic


        In the CompiledMethodLoad event the 'map' parameter to the event provides the profiler with an address map so that native addresses can be mapped to the bci in the method. Unfortunately we are reporting the address as offset from nmethod's instruction starting address (which isn't the same as the code_addr reported to the profiler because there is some header data before the instructions).
        ###@###.### 2005-1-20 12:42:50 GMT

        Specifically, the jvmtiAddrLocationMap.start_address should be an absolute address, not an offset. Per the JVM TI spec:

            Starting native address of code corresponding to a location


        ###@###.### 2005-1-21 00:08:04 GMT

              alanb Alan Bateman
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: