RFR (S) 8212931 HeapMonitorStatIntervalTest.java fails due average calculation

JC Beyler jcbeyler at google.com
Fri Nov 2 22:55:11 UTC 2018


Hi all,

Could I get a review for a bug in the calculation of the average size of an
allocation? The solution is actually not to do the calculation at all.
Instead, I just go in the cache and find an object with the right
stacktrace and get its size (since all sizes should be equal because they
are allocating every time 1-element arrays).

This removes the risk of a problem and simplifies the test.

Webrev: http://cr.openjdk.java.net/~jcbeyler/8212931/webrev.00/
Bug: https://bugs.openjdk.java.net/browse/JDK-8212931?filter=-1

Thanks,
Jc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20181102/7c56255d/attachment.html>


More information about the serviceability-dev mailing list