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

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

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 11, 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b27

      Description

      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.)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: