RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v12]
Aleksey Shipilev
shade at openjdk.org
Tue Nov 19 08:09:38 UTC 2024
> See the bug for more discussion and reproducer. This PR replaces the ad-hoc linked list with segmented list of arrays. Arrays are easy targets for GC. There are possible improvements here, most glaring is parallelism that is currently knee-capped by global synchronization. The synchronization scheme follows what we have in original code, and I think it is safer to continue with it right now.
>
> I'll put performance data in a separate comment.
>
> Additional testing:
> - [x] Original reproducer improves drastically
> - [x] New microbenchmark shows no regression on "churning" tests, which covers insertion/removal perf
> - [x] New microbenchmark shows improvement on Full GC times (crude, but repeatable), serves as a proxy for reproducer
> - [x] `java/lang/ref` tests in release
> - [x] `all` tests in fastdebug
Aleksey Shipilev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 13 additional commits since the last revision:
- Touchups
- Merge branch 'master' into JDK-8343704-cleaner-gc
- Drop --add-exports from the test
- prev is not needed
- Do not need -ea -esa in tests, our testing infra adds them already
- Add the node cache
- Avoid NPE on empty list, add tests, touchups
- Reimplement with segmented linked list of arrays
- Review feedback: make sure trimming actually works, stylistic changes
- Merge branch 'master' into JDK-8343704-cleaner-gc
- ... and 3 more: https://git.openjdk.org/jdk/compare/64337bbf...dc55597d
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/22043/files
- new: https://git.openjdk.org/jdk/pull/22043/files/de1a1b70..dc55597d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=22043&range=11
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=22043&range=10-11
Stats: 79748 lines in 1142 files changed: 38479 ins; 35650 del; 5619 mod
Patch: https://git.openjdk.org/jdk/pull/22043.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22043/head:pull/22043
PR: https://git.openjdk.org/jdk/pull/22043
More information about the core-libs-dev
mailing list