mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +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
|
@ -1060,6 +1060,7 @@ nmethod* CompileBroker::compile_method(const methodHandle& method, int osr_bci,
|
|||
assert(osr_bci == InvocationEntryBci || (0 <= osr_bci && osr_bci < method->code_size()), "bci out of range");
|
||||
assert(!method->is_abstract() && (osr_bci == InvocationEntryBci || !method->is_native()), "cannot compile abstract/native methods");
|
||||
assert(!method->method_holder()->is_not_initialized(), "method holder must be initialized");
|
||||
assert(!TieredCompilation || comp_level <= TieredStopAtLevel, "Invalid compilation level");
|
||||
// allow any levels for WhiteBox
|
||||
assert(WhiteBoxAPI || TieredCompilation || comp_level == CompLevel_highest_tier, "only CompLevel_highest_tier must be used in non-tiered");
|
||||
// return quickly if possible
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue