RFR: 8182284: G1Analytics uses uninitialized fields
Thomas Schatzl
thomas.schatzl at oracle.com
Tue Nov 21 08:06:02 UTC 2017
Hi,
On Tue, 2017-11-21 at 09:02 +0100, Erik Helin wrote:
> Hi all,
>
> this small patch just initializes two uninitialized fields in
> G1Analytics. 0.0 is a good enough as starting value, the fields are
> not
> meant to be read before a GC has been run (but if this would happen,
> observing 0.0 fits together with the calculations that the values
> represents).
>
> Bug:
> https://bugs.openjdk.java.net/browse/JDK-8182284
>
> Webrev:
> http://cr.openjdk.java.net/~ehelin/8182284/00/
>
looks good.
Thomas
More information about the hotspot-gc-dev
mailing list