comparison src/share/vm/runtime/compilationPolicy.cpp @ 16021:0926a952ba55

fixed crash when -XX:-TieredCompilation -XX:-UseGraalCompilationQueue is specified
author Doug Simon <doug.simon@oracle.com>
date Wed, 04 Jun 2014 22:18:38 +0200
parents 4ca6dc0799b6
children 52b4284cb496
comparison
equal deleted inserted replaced
16017:8d8c6a40d8e2 16021:0926a952ba55
201 // - if only COMPILER1 is defined (client build), zero should be returned for 201 // - if only COMPILER1 is defined (client build), zero should be returned for
202 // the c2 level. 202 // the c2 level.
203 // - if neither is defined - always return zero. 203 // - if neither is defined - always return zero.
204 int NonTieredCompPolicy::compiler_count(CompLevel comp_level) { 204 int NonTieredCompPolicy::compiler_count(CompLevel comp_level) {
205 assert(!TieredCompilation, "This policy should not be used with TieredCompilation"); 205 assert(!TieredCompilation, "This policy should not be used with TieredCompilation");
206 #ifdef COMPILER2 206 #if defined(COMPILER2) || defined(COMPILERGRAAL)
207 if (is_c2_compile(comp_level)) { 207 if (is_c2_compile(comp_level)) {
208 return _compiler_count; 208 return _compiler_count;
209 } else { 209 } else {
210 return 0; 210 return 0;
211 } 211 }