RFR (XS) 8214531: HeapMonitorEventOnOffTest.java test fails with "Statistics should be null to begin with"
JC Beyler
jcbeyler at google.com
Fri Nov 30 19:48:03 UTC 2018
Hi Serguei,
Technically "allocateAndCheckFrames" does enable it internally and the
comment helps understand that we are testing "sampling on - off - on", no?
I find that without the comments, you now have to understand what
allocateAndCheckFrames
does implicitly.
We could change it to this:
// By calling allocateAndCheckFrames(), we enabling the notifications
and check if allocations get sampled again
Does that look better?
Thanks!
Jc
On Fri, Nov 30, 2018 at 11:12 AM serguei.spitsyn at oracle.com <
serguei.spitsyn at oracle.com> wrote:
> Hi Jc,
>
> It looks good in general.
> I wonder if this comment is still needed:
> // Enabling the notification system should start events again.
>
> Thanks,
> Serguei
>
>
> On 11/30/18 09:08, JC Beyler wrote:
>
> Hi all,
>
> Tiny webrev that removes enabling the sampling system for the
> HeapMonitorEventOnOffTest before calling the allocateAndCheckFrames method
> (the allocateAndCheckFrames method enables it internally when no flag is
> passed to it).
>
> Webrev: http://cr.openjdk.java.net/~jcbeyler/8214531/webrev.00/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8214531
>
> Thanks,
> Jc
>
>
>
--
Thanks,
Jc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20181130/05b9c8c3/attachment-0001.html>
More information about the serviceability-dev
mailing list