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

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