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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 20
    • Affects Version/s: 19
    • Component/s: hotspot
    • b13
    • Verified

      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.

            Assignee:
            Serguei Spitsyn
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: