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

Jaroslav Bachorik jbachorik at openjdk.java.net
Mon Mar 1 15:37:06 UTC 2021


On Mon, 22 Feb 2021 17:08:08 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp line 79:
>> 
>>> 77:   size_t _young_live;
>>> 78:   size_t _eden_live;
>>> 79:   size_t _old_live;
>> 
>> It's only the sum that's ever exposed, right? I wonder if it makes sense to merge them into one var to only track the sum.
>
> I agree because they seem to be always read and written at the same time.

The original idea was that the sum might be computed from different areas depending on the GC phase. But, apparently, that's not the case so we can have just one common sum.

👍

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

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



More information about the hotspot-gc-dev mailing list