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

Check current thread when calling JRT methods that expect it

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 18
    • 17, 18
    • hotspot
    • b20

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: