C2: allow vectorization of HeapByteBuffer.putInt loops

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: