RFR: 8254878: Move last piece of ZArray to GrowableArray [v2]
Stefan Karlsson
stefank at openjdk.java.net
Mon Oct 19 08:28:15 UTC 2020
On Sun, 18 Oct 2020 13:24:28 GMT, Per Liden <pliden at openjdk.org> wrote:
>> 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.
>
> Per Liden has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev
> excludes the unrelated changes brought in by the merge/rebase. The pull request contains one additional commit since
> the last revision:
> 8254878: Move last piece of ZArray to GrowableArray
Marked as reviewed by stefank (Reviewer).
src/hotspot/share/utilities/growableArray.hpp line 696:
> 694:
> 695: public:
> 696: GrowableArrayCHeap(int initial_max = 0) :
Just noting that GrowableArray defaults to 2 and here we default to 0.
-------------
PR: https://git.openjdk.java.net/jdk/pull/694
More information about the hotspot-gc-dev
mailing list