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

indexOfChar intrinsic is not emitted on x86

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b126

      Description

      Andrew Haley noticed that the String indexOfChar intrinsic is broken on x86:
      http://mail.openjdk.java.net/pipermail/hotspot-dev/2016-May/023218.html

      I verified this by running test/compiler/intrinsics/string/TestStringIntrinsics.java with "-XX:+PrintCompilation -XX:+PrintInlining" and the log shows that C2 fails to inline the indexOfChar intrinsic:
                                    @ 31 java.lang.StringUTF16::indexOfChar (30 bytes) failed to inline (intrinsic)

        Attachments

          Activity

            People

            • Assignee:
              thartmann Tobias Hartmann
              Reporter:
              thartmann Tobias Hartmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: