comparison 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
comparison
equal deleted inserted replaced
3062:848dd57066ad 3064:8b0236cbed14
1532 os::current_thread_id(), 1532 os::current_thread_id(),
1533 os::current_process_id()); 1533 os::current_process_id());
1534 log->stamp(); 1534 log->stamp();
1535 log->end_elem(); 1535 log->end_elem();
1536 } 1536 }
1537
1538 if (UseGraal) {
1539 thread->set_compiling(true); // Prevent recursive compilations while the compiler is initializing.
1540 ThreadToNativeFromVM trans(JavaThread::current());
1541 GraalCompiler::instance()->initialize();
1542 }
1537 1543
1538 while (true) { 1544 while (true) {
1539 { 1545 {
1540 // Unset compiling flag. 1546 // Unset compiling flag.
1541 thread->set_compiling(false); 1547 thread->set_compiling(false);