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

AArch64: Better instruction sequence for stack bangs

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9, 10
    • hotspot
    • b21
    • aarch64

      Since 8172144, Implement "JEP 270: Reserved Stack Areas for Critical
      Sections" and 8173339, Fix minimum stack size computations, the stack
      bang size changed to 25 4k pages. Unfortunately, this means that we
      now generate three instructions for a stack bang.

      We should change the instruction sequence we use for stack bangs from

        mov x9, #0xffffffffffffc000
        movk x9, #0xfffe, lsl #16
        str xzr, [sp,x9]

      to

        sub x9, sp, #0x14, lsl #12
        str xzr, [x9]

            aph Andrew Haley
            aph Andrew Haley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: