equal
deleted
inserted
replaced
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)) { |