RFR: 8331557: Serial: Refactor SerialHeap::do_collection

Albert Mingkun Yang ayang at openjdk.org
Thu May 2 10:54:03 UTC 2024


It's probably easier to read the new code directly. The two classes in `serialVMOperations` serve as entrance points to invoke young/full GCs. Some previously hidden decisions are made more obvious, e.g. if a young-gc fails (or will probablly fail), fallback to full-gc.

Additionally, `StatRecord` is removed, because this kind of info-aggregation should be done outsite VM (by third-party tool).

Test: tier1-6

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

Commit messages:
 - s1-do-collect

Changes: https://git.openjdk.org/jdk/pull/19056/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19056&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8331557
  Stats: 555 lines in 15 files changed: 123 ins; 347 del; 85 mod
  Patch: https://git.openjdk.org/jdk/pull/19056.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19056/head:pull/19056

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


More information about the serviceability-dev mailing list