RFR: Usage tracking cleanup [v2]

William Kemper wkemper at openjdk.org
Wed Apr 19 22:59:17 UTC 2023


On Tue, 18 Apr 2023 22:02:17 GMT, William Kemper <wkemper at openjdk.org> wrote:

>> src/hotspot/share/gc/shenandoah/shenandoahHeap.hpp line 228:
>> 
>>> 226: public:
>>> 227:   void increase_used(const ShenandoahAllocRequest& req);
>>> 228:   void increase_used(size_t bytes);
>> 
>> Do we need both versions?
>
> I would like to remove `increase_used(size_t bytes)` from `ShenandoahHeap` and use `ShenandoahGlobalGeneration` as the source of truth for "whole heap" metrics.

I've updated the pull request to track whole heap usage in the global generation.

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

PR Review Comment: https://git.openjdk.org/shenandoah/pull/260#discussion_r1171925353


More information about the shenandoah-dev mailing list