# HG changeset patch # User Doug Simon # Date 1403214145 -7200 # Node ID 9b27e69f7cec3f1c37ad4737202dca1a5d3682ed # Parent 237508bd73b9d12a3bf0039c0fa7f8950c61edf2 added -XX:+PrintBootstrap option to mirror -G:+PrintBoostrap option diff -r 237508bd73b9 -r 9b27e69f7cec src/share/vm/graal/graalCompiler.cpp --- a/src/share/vm/graal/graalCompiler.cpp Thu Jun 19 23:41:46 2014 +0200 +++ b/src/share/vm/graal/graalCompiler.cpp Thu Jun 19 23:42:25 2014 +0200 @@ -125,7 +125,9 @@ if (!UseGraalCompilationQueue) { ResourceMark rm; HandleMark hm; - tty->print("Bootstrapping Graal"); + if (PrintBootstrap) { + tty->print("Bootstrapping Graal"); + } jlong start = os::javaTimeMillis(); Array* objectMethods = InstanceKlass::cast(SystemDictionary::Object_klass())->methods(); @@ -147,14 +149,17 @@ os::sleep(THREAD, sleep_time, true); sleep_time = 100; qsize = CompileBroker::queue_size(CompLevel_full_optimization); - while (z < (_compiled / 100)) { + if (PrintBootstrap) { + while (z < (_compiled / 100)) { ++z; tty->print_raw("."); + } } - } while (qsize != 0); - tty->print_cr(" in %d ms (compiled %d methods)", os::javaTimeMillis() - start, _compiled); + if (PrintBootstrap) { + tty->print_cr(" in %d ms (compiled %d methods)", os::javaTimeMillis() - start, _compiled); + } } else { TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/hotspot/CompilationQueue", THREAD); diff -r 237508bd73b9 -r 9b27e69f7cec src/share/vm/graal/graalGlobals.hpp --- a/src/share/vm/graal/graalGlobals.hpp Thu Jun 19 23:41:46 2014 +0200 +++ b/src/share/vm/graal/graalGlobals.hpp Thu Jun 19 23:42:25 2014 +0200 @@ -52,6 +52,9 @@ COMPILERGRAAL_PRESENT(product(bool, BootstrapGraal, true, \ "Bootstrap Graal before running Java main method")) \ \ + COMPILERGRAAL_PRESENT(product(bool, PrintBootstrap, true, \ + "Print Graal bootstrap progress and summary")) \ + \ COMPILERGRAAL_PRESENT(product(intx, GraalThreads, 1, \ "Force number of Graal compiler threads to use")) \ \