RFR: 8146530: [testbug] some tests fail because the compiler is using Java heap memory

Vladimir Kozlov vladimir.kozlov at oracle.com
Wed Jun 8 16:10:16 UTC 2016


Only UseJVMCICompiler triggers usage of java compiler.

EnableJVMCI is false only on embedded platforms as result you will not 
run the test at all if you check it. Please, remove this check.

Thanks,
Vladimir

On 6/8/16 2: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