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

    • Sub-task
    • Resolution: Fixed
    • P4
    • 9
    • None
    • hotspot
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: