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:
Tobias Hartmann 2016-04-14 08:32:39 +02:00
parent e33bf84754
commit 63403a410e
4 changed files with 16 additions and 11 deletions

View file

@ -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