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

C2: allow vectorization of HeapByteBuffer.putInt loops

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: