RFR: 8272147: Consolidate preserved marks handling with other STW collectors [v2]

Guoxiong Li gli at openjdk.org
Tue Jun 6 17:02:32 UTC 2023


> Hi all,
> 
> This patch removes the class `markSweep.hpp::PreservedMark` and uses the shared `PreservedMarksSet` instead.
> 
> In order to keep the meaning of the field `_preserved_marks` in `markSweep`,
> I need to use `OopAndMarkWord` explicitly. So I move `OopAndMarkWord` out of `PreservedMarks`.
> 
> Tests:
> `hotspot:tier1` passed locally (x86 & linux).
> 
> Thanks for the review.
> 
> Best Regards,
> -- Guoxiong

Guoxiong Li 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 three additional commits since the last revision:

 - Use the method 'adjust_during_full_gc' and polish the included header.
 - Merge branch 'master' into JDK-8272147
 - JDK-8272147

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/14274/files
  - new: https://git.openjdk.org/jdk/pull/14274/files/5f896236..bcf737c6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14274&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14274&range=00-01

  Stats: 12076 lines in 159 files changed: 10642 ins; 838 del; 596 mod
  Patch: https://git.openjdk.org/jdk/pull/14274.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14274/head:pull/14274

PR: https://git.openjdk.org/jdk/pull/14274


More information about the hotspot-gc-dev mailing list