RFR: 8254878: Move last piece of ZArray to GrowableArray

Per Liden pliden at openjdk.java.net
Fri Oct 16 09:33:18 UTC 2020


ZArray used to be a separate implementation of a dynamically allocated/growable array. It now instead inherits from
GrowableCHeapArray, and extends it with a transfer() function. I propose we rename this function to swap() and move it
to GrowableArrayWithAllocator, since this function could be generally useful. It would also mean that ZArray could be
just a typedef/using of GrowableCHeapArray.

-------------

Commit messages:
 - 8254878: Move last piece of ZArray to GrowableArray

Changes: https://git.openjdk.java.net/jdk/pull/694/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=694&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8254878
  Stats: 32 lines in 4 files changed: 6 ins; 23 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/694.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/694/head:pull/694

PR: https://git.openjdk.java.net/jdk/pull/694


More information about the hotspot-dev mailing list