Integrated: 8296785: Use realloc for CHeap-allocated BitMaps
Stefan Karlsson
stefank at openjdk.org
Thu Nov 17 21:27:35 UTC 2022
On Fri, 11 Nov 2022 06:39:32 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> Today CHeap allocated bitmaps don't resize with realloc. I'd like to change that by fixing that by adding support for realloc in the ArrayAllocator classes, and then use that when resizing the bitmaps.
>
> We've been using and testing one version of this patch in the Generational ZGC repository for a while now. That version is slightly different because of recent rewrites of the bitmaps, but in essence the same. See:
> https://github.com/openjdk/zgc/commit/ca692f686bda8d86d3786c2afc782bfdc54fbdfc
This pull request has now been integrated.
Changeset: 373e52c0
Author: Stefan Karlsson <stefank at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/373e52c0ab0d4fd3c6b18e67e0c46d1d1f0ac91e
Stats: 226 lines in 5 files changed: 174 ins; 30 del; 22 mod
8296785: Use realloc for CHeap-allocated BitMaps
Reviewed-by: stuefe, aboldtch
-------------
PR: https://git.openjdk.org/jdk/pull/11102
More information about the hotspot-dev
mailing list