RFR: 8368015: Shenandoah: fix error in computation of average allocation rate [v5]
Kelvin Nilsen
kdnilsen at openjdk.org
Tue Sep 23 22:56:01 UTC 2025
> We use bytes_allocated_since_gc_start() to compute allocation rates. This leaves a blind spot, as our current implementation ignores allocations and the time period between the moment we begin GC and the first time we update the allocation rate following the start of GC. When this happens, we typically find that the sampled number of allocations is smaller than the allocations that had accumulated by the time we triggered the start of the current GC cycle.
>
> This PR adds tracking for that accounting gap.
Kelvin Nilsen has updated the pull request incrementally with one additional commit since the last revision:
More override declarations to satisfy certain compilers
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27398/files
- new: https://git.openjdk.org/jdk/pull/27398/files/81db0b67..91f35d25
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27398&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27398&range=03-04
Stats: 7 lines in 1 file changed: 0 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/27398.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27398/head:pull/27398
PR: https://git.openjdk.org/jdk/pull/27398
More information about the hotspot-gc-dev
mailing list