8230423: Move os::sleep to JavaThread::sleep

Reviewed-by: rehn, dcubed
This commit is contained in:
David Holmes 2019-09-11 22:09:05 -04:00
parent 091cf3608b
commit 99252bd9d6
14 changed files with 84 additions and 79 deletions

View file

@ -81,7 +81,7 @@ void JVMCICompiler::bootstrap(TRAPS) {
do {
// Loop until there is something in the queue.
do {
os::sleep((JavaThread*)THREAD, 100);
((JavaThread*)THREAD)->sleep(100);
qsize = CompileBroker::queue_size(CompLevel_full_optimization);
} while (!_bootstrap_compilation_request_handled && first_round && qsize == 0);
first_round = false;