RFR(S/M): 8069160: serviceability/dcmd/compiler/CompilerQueueTest.java fails due to class not found
Nils Eliasson
nils.eliasson at oracle.com
Wed Feb 24 14:06:37 UTC 2016
Hi,
I need a review of this fix of the CompilerQueueTest.
Summary:
This test was checking the output from the Compiler.queue diagnostic
command - testing each queue entry by reflection. This was fragile
because different methods end up in the queue every run and what classes
are reflectable changes over time.
Solution:
In the improved version the whitebox API is used to block compilation
and then enqueue methods for all available compilation levels. Then the
jcmd is executed and the output is verified to contain the specific test
methods. In some scenarios where the compile queue is overwhelmed by
requestm, entries might get evicted. The test take that into account too.
Testing:
Run test on all platforms
Bug: https://bugs.openjdk.java.net/browse/JDK-8069160
Webrev: http://cr.openjdk.java.net/~neliasso/8069160/webrev.03/
Best regards,
Nils Eliasson
More information about the hotspot-compiler-dev
mailing list