RFR: 8327093: Add slice function to BitMap API [v3]
Matias Saavedra Silva
matsaave at openjdk.org
Wed Mar 6 21:34:06 UTC 2024
> 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.
Matias Saavedra Silva has updated the pull request incrementally with one additional commit since the last revision:
Ioi comments and moved tests
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/18092/files
- new: https://git.openjdk.org/jdk/pull/18092/files/95683209..17ac26f2
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=18092&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=18092&range=01-02
Stats: 413 lines in 4 files changed: 190 ins; 222 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/18092.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18092/head:pull/18092
PR: https://git.openjdk.org/jdk/pull/18092
More information about the hotspot-dev
mailing list