C2: No memory state needed in Thread::currentThread() intrinsic

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 14
    • Affects Version/s: 8, 11, 14
    • Component/s: hotspot
    • b27

      Thread::currentThread() intrinsic doesn't need memory state, since current thread can't be changed during method activation.

      It helps with optimising thread checks by forcing all thread checks to share a single value representing current thread.

      (The optimisation should be revisited in Project Loom, since it may be affected by how continuations are implemented.)

            Assignee:
            Vladimir Ivanov
            Reporter:
            Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: