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

AArch64: fix virtual threads with -XX:UseBranchProtection=pac-ret

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 19
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      aarch64

      Description

      The continuation freeze/thaw mechanism introduced with Loom moves the thread stack in memory. However when PAC is enabled on supported AArch64 CPUs, the saved LR on the stack contains a pointer authentication code signed with the stack pointer at the time the frame was created. After relocating a frame, we need to re-sign the LR with the new stack pointer.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ngasson Nick Gasson
              Reporter:
              ngasson Nick Gasson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: