RFR: 8146530: [testbug] some tests fail because the compiler is using Java heap memory
Jesper Wilhelmsson
jesper.wilhelmsson at oracle.com
Wed Jun 8 11:23:30 UTC 2016
Looks good!
/Jesper
Den 8/6/16 kl. 11:29, skrev Stefan Johansson:
> Hi all,
>
> Please review this test fix for:
> https://bugs.openjdk.java.net/browse/JDK-8146530
>
> Webrev:
> http://cr.openjdk.java.net/~sjohanss/8146530/hotspot.00/
>
> Summary:
> This test seems to fail because of two things. Either because it is executed
> with +ExplicitGCInvokesConcurrent or that a Java compiler is used via JVMCI. The
> suggested fix is to use @requires to avoid running the test with these options.
>
> The reason ExplicitGCInvokesConcurrent fails the test is because the test is
> written to rely on calling System.gc() to have a clear view when starting the
> test, and if this call instead starts a concurrent cycle the test might fail.
>
> Using JVMCI causes the test to fail because it leads to unexpected amount of
> allocated data and there for the assumptions made by the test does not hold.
>
> Testing:
> Verified that the test is not executed when these options are given on the
> command-line.
>
> Thanks,
> Stefan
More information about the hotspot-dev
mailing list