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

JVM TI Monitor queries might create JNI locals in another thread when using handshakes.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      15
    • Resolved In Build:
      b27

      Backports

        Description

        JDK-8242425 introduced the use of direct handshakes for the Monitor query functions in JVM TI. If the direct handshake is executed by the target thread, the JNI local(s) are created in that thread but returned in the handshaking thread.
        They thus are not safe to use.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rehn Robbin Ehn
                  Reporter:
                  rehn Robbin Ehn
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: