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

C2: allow vectorization of HeapByteBuffer.putInt loops

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • hotspot
    • b21

      Loops like this:
          static final ByteBuffer buf = ByteBuffer.allocate(SIZE * 4);

          void floss(ByteBuffer b, int n) {
              for (int i = 0; i < SIZE; i++) {
                  buf.putInt(i<<2, n);
              }
          }
      are currently not vectorized.

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

              Created:
              Updated:
              Resolved: