RFR: 8295808: GrowableArray should support capacity management
Kim Barrett
kbarrett at openjdk.org
Tue Oct 25 17:32:57 UTC 2022
On Mon, 24 Oct 2022 08:11:42 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
> Any thoughts of moving `expand_to` and `shrink_to_fit` to a common function, given that they share a lot of logic. Something like a general resize that [...]
You are right that there are some opportunities for factoring out common code,
though probably not as a general resize operation. (And that name already has
a different meaning for std::vector, so I would probably look for a different
name anyway.) I'm going to address that as a followup issue.
-------------
PR: https://git.openjdk.org/jdk/pull/10827
More information about the serviceability-dev
mailing list