RFR: 8337267: [REDO] G1: Refactor G1RebuildRSAndScrubTask
Albert Mingkun Yang
ayang at openjdk.org
Fri Jul 26 10:14:40 UTC 2024
The first commit is the original and the second commit fixes the issue, `should_rebuild_or_scrub` should be unconditional because `yield_if_necessary` is called on two diff levels, per-obj and per-obj-chunk. `yield_if_necessary` should return the same value for the same region in two consecutive invocations.
Test: tier1-6, 500 successful runs of gc/logging/TestUnifiedLoggingSwitchStress.java, with 4/100 failing rate without the second commit.
-------------
Commit messages:
- fix
- Original
Changes: https://git.openjdk.org/jdk/pull/20348/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20348&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8337267
Stats: 115 lines in 1 file changed: 15 ins; 59 del; 41 mod
Patch: https://git.openjdk.org/jdk/pull/20348.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20348/head:pull/20348
PR: https://git.openjdk.org/jdk/pull/20348
More information about the hotspot-gc-dev
mailing list