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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 14
    • 8, 11, 14
    • 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.)

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

              Created:
              Updated:
              Resolved: