Integrated: 8296139: Make GrowableBitMap the base class of all implementations

Xin Liu xliu at openjdk.org
Wed Nov 9 19:54:32 UTC 2022


On Wed, 2 Nov 2022 05:54:27 GMT, Xin Liu <xliu at openjdk.org> wrote:

> BitMap is an abstract class. All subclasses provide their own allocators. It is the allocator brings the capability to 'resize' the container. 
> I would like to add a new 'GrowableBitmap' and make it the common base class. 
> 
> To substitute 'VectorSet', we also need to merge ResourceBitMap and ArenaBitMap because VectorSet supports Resource and Arena storage at the same time. 
> This patch unifies them.  ResourceBitMap is a specialized ArenaBitMap whose allocator is with NULL arena.
> 
> All subclasses of GrowableBitMap are elastic. I will add new interface like VectorSet::test_set(index). It will grow to include the new index.

This pull request has now been integrated.

Changeset: 1b94ae13
Author:    Xin Liu <xliu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1b94ae13d3940951134a1010500fd95001b8cb15
Stats:     280 lines in 3 files changed: 85 ins; 143 del; 52 mod

8296139: Make GrowableBitMap the base class of all implementations

Reviewed-by: aboldtch, stefank, simonis

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

PR: https://git.openjdk.org/jdk/pull/10941


More information about the hotspot-runtime-dev mailing list