Mercurial > hg > graal-compiler
diff src/share/vm/compiler/compileBroker.cpp @ 3064:8b0236cbed14
Make sure that the compiler is initialized at startup (and not on the first compiled method).
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 22 Jun 2011 21:51:26 +0200 |
parents | d577d07cedec |
children | be4ca325525a |
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp Tue Jun 21 17:14:24 2011 +0200 +++ b/src/share/vm/compiler/compileBroker.cpp Wed Jun 22 21:51:26 2011 +0200 @@ -1534,6 +1534,12 @@ log->stamp(); log->end_elem(); } + + if (UseGraal) { + thread->set_compiling(true); // Prevent recursive compilations while the compiler is initializing. + ThreadToNativeFromVM trans(JavaThread::current()); + GraalCompiler::instance()->initialize(); + } while (true) { {