RFR: 8314571: GrowableArray should move its old data and not copy it [v2]

Johan Sjölen jsjolen at openjdk.org
Mon Aug 21 15:01:27 UTC 2023


On Mon, 21 Aug 2023 12:40:02 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> From reading the title, I thought this would introduce realloc() - introduce the semantics of grow-in-place for the underlying Allocators. That would be quite useful.

Arenas do have `Arealloc`, `ResourceArea`s are arenas, and of course `malloc` can `realloc` so all of our allocators could support this sort of implementation also.

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

PR Comment: https://git.openjdk.org/jdk/pull/15344#issuecomment-1686494365


More information about the hotspot-dev mailing list