RFR: Usage tracking cleanup [v2]
William Kemper
wkemper at openjdk.org
Wed Apr 19 22:59:17 UTC 2023
> There are many nuances to tracing memory utilization. Shenandoah track's usage, waste by humongous objects, padding for promotion LABs alignment and all this is also tracked by generation, the heap and feeds into the heuristics and the pacer. The code to update all of these values and route them to the right places was spread across the allocation call stack. This change consolidates all of the logic into one method, invoked near the end of the allocation.
William Kemper has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 12 commits:
- Track total heap usage in global generation
- Remove unused method: clear_used
- Readability improvements
- Merge branch 'shenandoah-master' into alloc-tracking-cleanup
- Merge branch 'shenandoah-master' into alloc-tracking-cleanup
- Remove invalid assert
- Merge branch 'shenandoah-master' into alloc-tracking-cleanup
- Consolidate usage/allocate/waste accounting
- WIP: Oops - report usage in bytes, not words
- WIP: Initialize new padding field
- ... and 2 more: https://git.openjdk.org/shenandoah/compare/016bf071...99c52914
-------------
Changes: https://git.openjdk.org/shenandoah/pull/260/files
Webrev: https://webrevs.openjdk.org/?repo=shenandoah&pr=260&range=01
Stats: 362 lines in 13 files changed: 165 ins; 127 del; 70 mod
Patch: https://git.openjdk.org/shenandoah/pull/260.diff
Fetch: git fetch https://git.openjdk.org/shenandoah.git pull/260/head:pull/260
PR: https://git.openjdk.org/shenandoah/pull/260
More information about the shenandoah-dev
mailing list