Mercurial > hg > truffle
changeset 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 | 8d8c6a40d8e2 |
children | 3f350b0d93c9 |
files | src/share/vm/runtime/compilationPolicy.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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 {