Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/compilationPolicy.cpp @ 10022:3ce140f4f2c9
Bootstrap-specific fix for CompilationPolicy 0.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Thu, 13 Jun 2013 14:44:33 +0200 |
parents | 89e4d67fdd2a |
children | 836a62f43af9 |
line wrap: on
line diff
--- a/src/share/vm/runtime/compilationPolicy.cpp Thu Jun 13 10:54:58 2013 +0200 +++ b/src/share/vm/runtime/compilationPolicy.cpp Thu Jun 13 14:44:33 2013 +0200 @@ -422,6 +422,11 @@ if (is_compilation_enabled() && can_be_compiled(m)) { nmethod* nm = m->code(); +#ifdef GRAALVM + if (m->queued_for_compilation()) { + delay_compilation(m()); + } else +#endif if (nm == NULL ) { CompileBroker::compile_method(m, InvocationEntryBci, comp_level, m, hot_count, comment, thread); }