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

C2: vectorization fails on simple ByteBuffer loop

    XMLWordPrintable

Details

    • b14

    Description

      This showed up with some panama benchmarks.
      The following code snippet (extracted from a ByteBuffer benchmark) is not vectorized:

          public static void testByteLong4(byte[] dest, long[] src, int start, int stop) {
              for (int i = start; i < stop; i++) {
                  UNSAFE.putLongUnaligned(dest, 8 * i + baseOffset, src[i]);
              }
          }

      Attachments

        Issue Links

          Activity

            People

              roland Roland Westrelin
              roland Roland Westrelin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: