Github user tison1 commented on the issue: https://github.com/apache/flink/pull/6370 by analyses the use path of this method, we gain little on `ensureCapacity`, in fact, test fails on #6353 is caused by too many `ensureCapacity` and then `Array.copyOf` race each other.
---