Integrated: 8327093: Add truncate function to BitMap API
Matias Saavedra Silva
matsaave at openjdk.org
Mon Mar 11 16:38:03 UTC 2024
On Fri, 1 Mar 2024 23:14:18 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
> The BitMap does not currently have a "slice" method which can return a subset of the bitmap defined by a start and end bit. This utility can be used to analyze portions of a bitmap or to overwrite the existing map with a shorter, modified map.
>
> This implementation has two core methods:
> `copy_of_range` allocates and returns a new word array as used internally by BitMap
> `truncate` overwrites the internal array with the one generated by `copy_of_range` so none of the internal workings are exposed to callers outside of BitMap.
>
> This change is verified with an included test.
This pull request has now been integrated.
Changeset: d74b907d
Author: Matias Saavedra Silva <matsaave at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/d74b907d206073243437771486c1d62240de3d81
Stats: 289 lines in 3 files changed: 287 ins; 0 del; 2 mod
8327093: Add truncate function to BitMap API
Reviewed-by: aboldtch, iklam
-------------
PR: https://git.openjdk.org/jdk/pull/18092
More information about the hotspot-dev
mailing list