RFR: 8361520: Stabilize SystemGC benchmarks [v2]
Aleksey Shipilev
shade at openjdk.org
Tue Jul 8 13:35:38 UTC 2025
On Tue, 8 Jul 2025 12:07:57 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
> Maybe also related to [JDK-8343047](https://bugs.openjdk.org/browse/JDK-8343047)?
Maybe. The first iteration of the benchmark is very noisy, as it IMO heavily depends on initial heap conditions at benchmark start. For a mark-compact, a small dead or alive object near the bottom of the heap may be a difference between a substantial heap move, or hardly any moves at all. Throw in multithreaded work balancing, and things get even more interesting. This is why there is `System.gc()` in `@Setup` now, so that we get into the same heap conditions before we go for a "real" benchmarked `System.gc()`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26182#issuecomment-3048988773
More information about the hotspot-gc-dev
mailing list