RFR : JDK-8154166 - java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java fails with RuntimeException

Jaroslav Bachorik j.bachorik at gmail.com
Fri Apr 22 14:28:46 UTC 2016


Hi,

On Fri, Apr 22, 2016 at 9:10 AM, Harsha Wardhana B <
harsha.wardhana.b at oracle.com> wrote:

> Hi,
>
> Please review the below simple fix for issue,
>
> issue : https://bugs.openjdk.java.net/browse/JDK-8154166
> webrev : <http://cr.openjdk.java.net/%7Ehb/8154166/webrev.00/>
> http://cr.openjdk.java.net/~hb/8154166/webrev.00/
>

Shouldn't this test rather declare the conditions when it is supposed to
work? According to the issue this was caused by introducing the
"-XX:+ExplicitGCInvokesConcurrent"
which makes it very tricky to make any assumptions about the GC process.

See eg. jdk/tests/java/lang/management/MemoryMXBean/LowMemoryTest.java for
enabling the test only for allowed configurations.

Cheers,

-JB-


>
>
> -Harsha
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20160422/f1fc444b/attachment.html>


More information about the serviceability-dev mailing list