Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8054307 JEP 254: Compact Strings
  3. JDK-8138702

StringUTF16.(get|set)Char intrinsic should use scaled operand

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None

      Description

      -XX:+StringCharIntrinsics does:

        0x00007f7cd51ab90d: shl %edx
        0x00007f7cd51ab90f: movzwl 0x10(%r10,%rdx,1),%eax

      -XX:-StringCharIntrinsics does:

      ; <lots on Unsafe garbage before>
      0x00007f3a5cf8fa13: movzwl 0x10(%r10,%r11,2),%eax

      The intrinsic could use a complex operand with scale=2.

        Attachments

          Activity

            People

            • Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: