RFR: 8146530: [testbug] some tests fail because the compiler is using Java heap memory
Stefan Johansson
stefan.johansson at oracle.com
Wed Jun 8 09:29:28 UTC 2016
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