RFR(S): 8152169: LockCompilationTest.java fails due method present in the compiler queue
Nils Eliasson
nils.eliasson at oracle.com
Fri Mar 18 15:02:49 UTC 2016
Hi,
Please review this test fix.
Summary:
This test tests the locking of the compilers - make sure no compiles can
be completed while the lock is in place. When running with
-XX:-TieredCompilation and -XX:CompileThreshold=100 we got a fairly long
queue of compiles waiting, and when only C2 is available it can take
longer to complete than the test wait time.
Solution:
Only allow compile of the test method - make sure we have no contention
on the compile queue. With only a single method in the queue we can also
reduce the wait time.
Testing:
Test run in failing configuration.
Bug: https://bugs.openjdk.java.net/browse/JDK-8152169
Webrev: http://cr.openjdk.java.net/~neliasso/8152169/webrev.01/
Regards,
Nils
More information about the hotspot-compiler-dev
mailing list