Mercurial > hg > graal-compiler
diff src/share/vm/graal/graalCompiler.cpp @ 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 | d32be0297274 |
children | 4481cf549cfc |
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);