# HG changeset patch # User Christian Haeubl # Date 1371127473 -7200 # Node ID 3ce140f4f2c94c6ad2245b0230011165e40213d0 # Parent 7f2e23d309b37f6018f44b8eaac923c2ca921f70 Bootstrap-specific fix for CompilationPolicy 0. diff -r 7f2e23d309b3 -r 3ce140f4f2c9 src/share/vm/runtime/compilationPolicy.cpp --- 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); }