RFR: 8261270: MakeMethodNotCompilableTest fails with -XX:TieredStopAtLevel={1, 2, 3}
Igor Veresov
iveresov at openjdk.java.net
Sat Feb 6 01:38:48 UTC 2021
JDK-8251462 changed semantics of CompilationPolicy::highest_compile_level() and CompilationPolicy::can_be_compiled() to take into the account compiler availability due to command line flags restrictions. For example, if C2 is not available because of the TieredStopAtLevel setting, the answer to these queries will be that the highest level is 3, and that methods can't be compiled at level 4.
MakeMethodNotCompilableTest.java assumes (even in the presence of the mentioned restrictions) that with tiered compilation it is always the case that both compilers can be used.
This change fixes the test to take this into account.
-------------
Commit messages:
- Adjust the test to support new semantics
Changes: https://git.openjdk.java.net/jdk/pull/2443/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2443&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8261270
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/2443.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/2443/head:pull/2443
PR: https://git.openjdk.java.net/jdk/pull/2443
More information about the hotspot-compiler-dev
mailing list