diff 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
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Sat Nov 13 19:58:27 2010 +0100
+++ b/src/share/vm/compiler/compileBroker.cpp	Sat Nov 13 21:11:28 2010 +0100
@@ -540,6 +540,7 @@
 
 // Bootstrap the C1X compiler. Compiles all methods until compile queue is empty and no compilation is active.
 void CompileBroker::bootstrap_c1x() {
+  HandleMark hm;
   Thread* THREAD = Thread::current();
   tty->print_cr("Bootstrapping C1X...");
 
@@ -547,16 +548,15 @@
   if (compiler == NULL) fatal("must use flag -XX:+UseC1X");
 
   jlong start = os::javaTimeMillis();
-  {
-    HandleMark hm;
-    instanceKlass* klass = (instanceKlass*)SystemDictionary::Object_klass()->klass_part();
-    methodOop method = klass->find_method(vmSymbols::object_initializer_name(), vmSymbols::void_method_signature());
-    CompileBroker::compile_method(method, -1, method, 0, "initial compile of object initializer", THREAD);
-    if (HAS_PENDING_EXCEPTION) {
-      CLEAR_PENDING_EXCEPTION;
-      fatal("error inserting object initializer into compile queue");
-    }
+
+  instanceKlass* klass = (instanceKlass*)SystemDictionary::Object_klass()->klass_part();
+  methodOop method = klass->find_method(vmSymbols::object_initializer_name(), vmSymbols::void_method_signature());
+  CompileBroker::compile_method(method, -1, method, 0, "initial compile of object initializer", THREAD);
+  if (HAS_PENDING_EXCEPTION) {
+    CLEAR_PENDING_EXCEPTION;
+    fatal("error inserting object initializer into compile queue");
   }
+
   int z = 0;
   while (true) {
     {
@@ -595,6 +595,10 @@
     }
     ++z;
   }
+
+  // Do a full garbage collection.
+  Universe::heap()->collect(GCCause::_java_lang_system_gc);
+
   jlong diff = os::javaTimeMillis() - start;
   tty->print_cr("Finished bootstrap in %d ms", diff);
   if (CITime) CompileBroker::print_times();