RFR: 8338912: CDS: Segmented roots array [v10]
Aleksey Shipilev
shade at openjdk.org
Fri Sep 13 15:10:21 UTC 2024
> Attempt to drop the min region alignment with [JDK-8337828](https://bugs.openjdk.org/browse/JDK-8337828) highlights an interesting trouble. The roots array we are creating during the dump time can easily be larger than the min region alignment. We are currently "lucky" none of our tests hit this limit. AFAICS, about 128K classes would be enough to hit the current 1M min region alignment. Dropping the min region alignment to 256K starts to fail the test with "only" 30K classes, [JDK-8338856](https://bugs.openjdk.org/browse/JDK-8338856).
>
> We can slice that heap root array, and thus untie the roots count from the min region alignment. I am submitting something that works, but this might not be the final form for it. I would like @iklam to poke holes in this approach :)
>
> Additional testing:
> - [x] macos-aarch64-server-fastdebug, `runtime/cds`
> - [x] linux-aarch64-server-fastdebug, `all`
> - [x] linux-x86_64-server-fastdebug, `all`
Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:
Revert superfluous fluff
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/20858/files
- new: https://git.openjdk.org/jdk/pull/20858/files/69358652..d2a7e6dc
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=20858&range=09
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=20858&range=08-09
Stats: 17 lines in 2 files changed: 9 ins; 7 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/20858.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20858/head:pull/20858
PR: https://git.openjdk.org/jdk/pull/20858
More information about the hotspot-runtime-dev
mailing list