Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalCompiler.cpp @ 19780:18be6264186f
Bootstrap might exit early in debug JVM
author | twisti |
---|---|
date | Tue, 10 Mar 2015 20:32:04 -0700 |
parents | 98592ae4b1fa |
children | f2bdbfe9201b |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp Tue Mar 10 23:33:12 2015 +0100 +++ b/src/share/vm/graal/graalCompiler.cpp Tue Mar 10 20:32:04 2015 -0700 @@ -85,12 +85,15 @@ } int qsize; - jlong sleep_time = 1000; + bool first_round = true; int z = 0; do { - os::sleep(THREAD, sleep_time, true); - sleep_time = 100; - qsize = CompileBroker::queue_size(CompLevel_full_optimization); + // Loop until there is something in the queue. + do { + os::sleep(THREAD, 100, true); + qsize = CompileBroker::queue_size(CompLevel_full_optimization); + } while (first_round && qsize == 0); + first_round = false; if (PrintBootstrap) { while (z < (_methodsCompiled / 100)) { ++z;