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

indexOfChar intrinsic is not emitted on x86

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b126

      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)

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

              Created:
              Updated:
              Resolved: