--- a/src/hotspot/share/jvmci/jvmciCompiler.cpp Sat Sep 07 10:05:47 2019 -0700
+++ b/src/hotspot/share/jvmci/jvmciCompiler.cpp Sat Sep 07 18:48:57 2019 -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;