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

Intrinsify StringCoding.hasNegatives() on SPARC

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b114
    • CPU:
      sparc

      Description

      The CompactStrings JEP added intrinsic support for StringCoding.hasNegatives() on x86. We should implement an intrinsic for SPARC as well since CompactStrings is enabled by default.

      The hasNegatives intrinsic is used to determine if a String in an ASCII-compatible encoding (for example, ISO-8859-1 (Latin1) or UTF-8) has only ASCII characters. If so, we can use a simple Arraycopy for some encodings/decodings. For example:

      - Decoding from an ASCII-compatible representation to a Latin1 String can be done by a simple arraycopy if the input has only 7-bit ASCII characters.
      - Encoding to an ASCII-compatible representation from a Latin1 String can be done by a simple arraycopy if the input has only 7-bit ASCII characters.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gdelamarter Guy Delamarter (Inactive)
                Reporter:
                thartmann Tobias Hartmann
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: