RFR: 8320864: Serial: Extract out Full GC related fields from ContiguousSpace

Albert Mingkun Yang ayang at openjdk.org
Tue Nov 28 09:36:24 UTC 2023


Simple moving some fields from the generic class to Full GC specific files.

Ideally, on deciding wheter `to`-space should be compacted, one should use `set_incremental_collection_failed` to check if promotion-failure occurred during young-gc, but in some places, this flag is set even in the absence of promotion-failure, e.g. `heap->set_incremental_collection_failed(); // Slight lie: we did not even attempt one`. Therefore, I used `next_compaction_space` for this purpose, in order to keep this patch more focused and the diff-size small.

Test: tier1-5; perf neutral using the attached benchmark.

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

Commit messages:
 - s1-full-gc

Changes: https://git.openjdk.org/jdk/pull/16842/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16842&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8320864
  Stats: 857 lines in 11 files changed: 269 ins; 494 del; 94 mod
  Patch: https://git.openjdk.org/jdk/pull/16842.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16842/head:pull/16842

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


More information about the hotspot-gc-dev mailing list