mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8154073: Several compiler tests fail when are executed with C1 only
Added missing flag checks to the tests and Whitebox API. Reviewed-by: kvn
This commit is contained in:
parent
e33bf84754
commit
63403a410e
4 changed files with 16 additions and 11 deletions
|
@ -641,7 +641,8 @@ WB_END
|
|||
|
||||
bool WhiteBox::compile_method(Method* method, int comp_level, int bci, Thread* THREAD) {
|
||||
// Screen for unavailable/bad comp level or null method
|
||||
if (method == NULL || CompileBroker::compiler(comp_level) == NULL) {
|
||||
if (method == NULL || comp_level > TieredStopAtLevel ||
|
||||
CompileBroker::compiler(comp_level) == NULL) {
|
||||
return false;
|
||||
}
|
||||
methodHandle mh(THREAD, method);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue