Check current thread when calling JRT methods that expect it

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: 17, 18
    • Component/s: hotspot
    • b20

      I found this oddity when porting Loom to x86_32. There are JRT entries that have "JavaThread* current" in their signature, and I believe that sets the expectation that JRT entry is to be called with the current thread as the argument. But, that is not mechanically checked, unless we call into thread transition. To simplify debugging, we should check current thread.

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: