Mercurial > hg > graal-jvmci-8
comparison src/share/vm/compiler/compileBroker.cpp @ 1462:1845386f5403
Full GC after bootstrap. Disable IRChecker by default. Disable compiled method logging by default.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Sat, 13 Nov 2010 21:11:28 +0100 |
parents | 7cf1952ec5fb |
children | 5571b97fc1ec |
comparison
equal
deleted
inserted
replaced
1461:944071972cd9 | 1462:1845386f5403 |
---|---|
538 } | 538 } |
539 } | 539 } |
540 | 540 |
541 // Bootstrap the C1X compiler. Compiles all methods until compile queue is empty and no compilation is active. | 541 // Bootstrap the C1X compiler. Compiles all methods until compile queue is empty and no compilation is active. |
542 void CompileBroker::bootstrap_c1x() { | 542 void CompileBroker::bootstrap_c1x() { |
543 HandleMark hm; | |
543 Thread* THREAD = Thread::current(); | 544 Thread* THREAD = Thread::current(); |
544 tty->print_cr("Bootstrapping C1X..."); | 545 tty->print_cr("Bootstrapping C1X..."); |
545 | 546 |
546 C1XCompiler* compiler = C1XCompiler::instance(); | 547 C1XCompiler* compiler = C1XCompiler::instance(); |
547 if (compiler == NULL) fatal("must use flag -XX:+UseC1X"); | 548 if (compiler == NULL) fatal("must use flag -XX:+UseC1X"); |
548 | 549 |
549 jlong start = os::javaTimeMillis(); | 550 jlong start = os::javaTimeMillis(); |
550 { | 551 |
551 HandleMark hm; | 552 instanceKlass* klass = (instanceKlass*)SystemDictionary::Object_klass()->klass_part(); |
552 instanceKlass* klass = (instanceKlass*)SystemDictionary::Object_klass()->klass_part(); | 553 methodOop method = klass->find_method(vmSymbols::object_initializer_name(), vmSymbols::void_method_signature()); |
553 methodOop method = klass->find_method(vmSymbols::object_initializer_name(), vmSymbols::void_method_signature()); | 554 CompileBroker::compile_method(method, -1, method, 0, "initial compile of object initializer", THREAD); |
554 CompileBroker::compile_method(method, -1, method, 0, "initial compile of object initializer", THREAD); | 555 if (HAS_PENDING_EXCEPTION) { |
555 if (HAS_PENDING_EXCEPTION) { | 556 CLEAR_PENDING_EXCEPTION; |
556 CLEAR_PENDING_EXCEPTION; | 557 fatal("error inserting object initializer into compile queue"); |
557 fatal("error inserting object initializer into compile queue"); | 558 } |
558 } | 559 |
559 } | |
560 int z = 0; | 560 int z = 0; |
561 while (true) { | 561 while (true) { |
562 { | 562 { |
563 HandleMark hm; | 563 HandleMark hm; |
564 ResourceMark rm; | 564 ResourceMark rm; |
593 ThreadToNativeFromVM trans(JavaThread::current()); | 593 ThreadToNativeFromVM trans(JavaThread::current()); |
594 usleep(1000); | 594 usleep(1000); |
595 } | 595 } |
596 ++z; | 596 ++z; |
597 } | 597 } |
598 | |
599 // Do a full garbage collection. | |
600 Universe::heap()->collect(GCCause::_java_lang_system_gc); | |
601 | |
598 jlong diff = os::javaTimeMillis() - start; | 602 jlong diff = os::javaTimeMillis() - start; |
599 tty->print_cr("Finished bootstrap in %d ms", diff); | 603 tty->print_cr("Finished bootstrap in %d ms", diff); |
600 if (CITime) CompileBroker::print_times(); | 604 if (CITime) CompileBroker::print_times(); |
601 tty->print_cr("==========================================================================="); | 605 tty->print_cr("==========================================================================="); |
602 } | 606 } |