RFR 8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
Harold Seigel
harold.seigel at oracle.com
Mon Jun 17 18:57:15 UTC 2019
Hi,
Please review this JDK-14 change to move the invocation tests written by
Vladimir Ivanov into the JDK repo and make them runnable using JTReg.
This webrev adds three tests, invokeinterfaceTests.java,
invokespecialTests.java, and invokevirtualTests.java. Each tests run
its set of sub-tests twice, once using class file version 51 and once
using the current class file version.
Open Webrev: http://cr.openjdk.java.net/~hseigel/bug_8224137/webrev/
JBS Bug: https://bugs.openjdk.java.net/browse/JDK-8224137
The tests were tested on Linux-x64, Solaris, Windows, and Mac OS X.
The original tests can be found attached to JDK-8163974
<https://bugs.openjdk.java.net/browse/JDK-8163974>. Besides the changes
needed for JTReg and adding copyrights, I made the following additional
changes.
1. The tests now use the JDK's asm support instead of providing its own
asm libraries.
2. Only sub-test failures are written to the .jtr files. Writing all
sub-test results caused JTReg to truncate the output.
3. Changed src/invokeinterface/Checker.java to skip private methods
when looking for an overloading method.
The tests contain "TODO" comments and other thing needing clean-up.
These will be addressed in a future RFE.
I put the tests into hs-tier3 because the invokeInterfaceTests.java test
can run for up to 10 minutes (on Mac). The other two tests take only
1-2 minutes. Is there a better tier for these tests?
Thanks, Harold
More information about the hotspot-runtime-dev
mailing list