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

GrowableArray should move its old data and not copy it

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • hotspot

      Right now GrowableArray by default calls E's copy constructor when the backing array is resized and moved. This is unnecessary, it should instead explicitly call the move constructor. The advantage of this is that NONCOPYABLE classes can now be stored by the GrowableArray.

            jsjolen Johan Sjölen
            jsjolen Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: