RFR: 8146530: [testbug] some tests fail because the compiler is using Java heap memory
Jon Masamitsu
jon.masamitsu at oracle.com
Wed Jun 8 15:47:44 UTC 2016
Looks good. Copyright needs updating.
Jon
On 06/08/2016 02:29 AM, Stefan Johansson wrote:
> 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