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

C2: vectorization fails on simple ByteBuffer loop

XMLWordPrintable

    • b14

      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]);
              }
          }

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

              Created:
              Updated:
              Resolved: