RFR: 8258431: Provide a JFR event with live set size estimate [v9]

Jaroslav Bachorik jbachorik at openjdk.java.net
Tue Mar 2 14:33:15 UTC 2021


On Thu, 18 Feb 2021 10:25:34 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> Jaroslav Bachorik has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add tests for the heap usage summary event
>
> src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp line 511:
> 
>> 509: 
>> 510:   ShenandoahCollectLiveSizeClosure cl;
>> 511:   heap_region_iterate(&cl);
> 
> I think you want `parallel_heap_region_iterate` on this path, and do `Atomic::add(&_live, r->get_live_data_bytes())` in the closure. We shall see if this makes sense to make fully concurrently...

Outdated by the patch provided by @shipilev

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

PR: https://git.openjdk.java.net/jdk/pull/2579



More information about the hotspot-gc-dev mailing list