--- old/src/hotspot/share/jvmci/jvmciCompiler.cpp 2019-09-04 05:35:33.279857624 -0400 +++ new/src/hotspot/share/jvmci/jvmciCompiler.cpp 2019-09-04 05:35:32.213847335 -0400 @@ -50,6 +50,7 @@ } void JVMCICompiler::bootstrap(TRAPS) { + assert(THREAD->is_Java_thread(), "must be"); if (Arguments::mode() == Arguments::_int) { // Nothing to do in -Xint mode return; @@ -80,7 +81,7 @@ do { // Loop until there is something in the queue. do { - os::sleep(THREAD, 100, true); + os::sleep((JavaThread*)THREAD, 100); qsize = CompileBroker::queue_size(CompLevel_full_optimization); } while (!_bootstrap_compilation_request_handled && first_round && qsize == 0); first_round = false;