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

Calling GetLocalXXX from virtual thread with thread parameter set to NULL returns carrier locals

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 20
    • 19
    • hotspot
    • b13
    • Verified

    Description

      Peter Hofer from the Graal team reported this.

      If GetLocalXXX is called from a virtual thread with the thread parameter set to NULL (meaning current thread) then it should read the value of the locals in the virtual thread frames. Instead, it reads the carrier thread locals and/or crashes.

      It seems to be an oversight that GetLocalXXX does not check if the thread parameter is NULL.

      Attachments

        Issue Links

          Activity

            People

              sspitsyn Serguei Spitsyn
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: