Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/runtime/compilationPolicy.cpp Wed Jun 04 19:17:22 2014 +0200 +++ b/src/share/vm/runtime/compilationPolicy.cpp Wed Jun 04 22:18:38 2014 +0200 @@ -203,7 +203,7 @@ // - if neither is defined - always return zero. int NonTieredCompPolicy::compiler_count(CompLevel comp_level) { assert(!TieredCompilation, "This policy should not be used with TieredCompilation"); -#ifdef COMPILER2 +#if defined(COMPILER2) || defined(COMPILERGRAAL) if (is_c2_compile(comp_level)) { return _compiler_count; } else {