src/hotspot/share/jvmci/jvmciCompiler.cpp
changeset 58041 d8902e9c307c
parent 54799 2a25ece54fd8
child 58095 adc72cd1d1f2
equal deleted inserted replaced
58040:d99af76d7689 58041:d8902e9c307c
    48 
    48 
    49   set_state(initialized);
    49   set_state(initialized);
    50 }
    50 }
    51 
    51 
    52 void JVMCICompiler::bootstrap(TRAPS) {
    52 void JVMCICompiler::bootstrap(TRAPS) {
       
    53   assert(THREAD->is_Java_thread(), "must be");
    53   if (Arguments::mode() == Arguments::_int) {
    54   if (Arguments::mode() == Arguments::_int) {
    54     // Nothing to do in -Xint mode
    55     // Nothing to do in -Xint mode
    55     return;
    56     return;
    56   }
    57   }
    57   _bootstrapping = true;
    58   _bootstrapping = true;
    78   bool first_round = true;
    79   bool first_round = true;
    79   int z = 0;
    80   int z = 0;
    80   do {
    81   do {
    81     // Loop until there is something in the queue.
    82     // Loop until there is something in the queue.
    82     do {
    83     do {
    83       os::sleep(THREAD, 100, true);
    84       os::sleep((JavaThread*)THREAD, 100);
    84       qsize = CompileBroker::queue_size(CompLevel_full_optimization);
    85       qsize = CompileBroker::queue_size(CompLevel_full_optimization);
    85     } while (!_bootstrap_compilation_request_handled && first_round && qsize == 0);
    86     } while (!_bootstrap_compilation_request_handled && first_round && qsize == 0);
    86     first_round = false;
    87     first_round = false;
    87     if (PrintBootstrap) {
    88     if (PrintBootstrap) {
    88       while (z < (_methods_compiled / 100)) {
    89       while (z < (_methods_compiled / 100)) {