Mercurial > hg > truffle
changeset 16146:9b27e69f7cec
added -XX:+PrintBootstrap option to mirror -G:+PrintBoostrap option
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 19 Jun 2014 23:42:25 +0200 |
parents | 237508bd73b9 |
children | f75c23a505e1 |
files | src/share/vm/graal/graalCompiler.cpp src/share/vm/graal/graalGlobals.hpp |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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<Method*>* 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);
--- 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")) \ \