@@ -398,7 +398,6 @@ CompileTask* CompileQueue::get(CompilerThread* thread) {
398398 // save methods from RedefineClasses across safepoint
399399 // across MethodCompileQueue_lock below.
400400 methodHandle save_method;
401- methodHandle save_hot_method;
402401
403402 MonitorLocker locker (MethodCompileQueue_lock);
404403 // If _first is null we have no more compile jobs. There are two reasons for
@@ -453,7 +452,6 @@ CompileTask* CompileQueue::get(CompilerThread* thread) {
453452 // the compilation queue, which is walked during RedefineClasses.
454453 Thread* thread = Thread::current ();
455454 save_method = methodHandle (thread, task->method ());
456- save_hot_method = methodHandle (thread, task->hot_method ());
457455
458456 remove (task);
459457 }
@@ -1154,7 +1152,6 @@ void CompileBroker::mark_on_stack() {
11541152void CompileBroker::compile_method_base (const methodHandle& method,
11551153 int osr_bci,
11561154 int comp_level,
1157- const methodHandle& hot_method,
11581155 int hot_count,
11591156 CompileTask::CompileReason compile_reason,
11601157 bool blocking,
@@ -1173,13 +1170,8 @@ void CompileBroker::compile_method_base(const methodHandle& method,
11731170 tty->print (" osr_bci: %d" , osr_bci);
11741171 }
11751172 tty->print (" level: %d comment: %s count: %d" , comp_level, CompileTask::reason_name (compile_reason), hot_count);
1176- if (!hot_method.is_null ()) {
1177- tty->print (" hot: " );
1178- if (hot_method () != method ()) {
1179- hot_method->print_short_name (tty);
1180- } else {
1181- tty->print (" yes" );
1182- }
1173+ if (hot_count > 0 ) {
1174+ tty->print (" hot: yes" );
11831175 }
11841176 tty->cr ();
11851177 }
@@ -1326,7 +1318,7 @@ void CompileBroker::compile_method_base(const methodHandle& method,
13261318 task = create_compile_task (queue,
13271319 compile_id, method,
13281320 osr_bci, comp_level,
1329- hot_method, hot_count, compile_reason,
1321+ hot_count, compile_reason,
13301322 blocking);
13311323 }
13321324
@@ -1337,7 +1329,7 @@ void CompileBroker::compile_method_base(const methodHandle& method,
13371329
13381330nmethod* CompileBroker::compile_method (const methodHandle& method, int osr_bci,
13391331 int comp_level,
1340- const methodHandle& hot_method, int hot_count,
1332+ int hot_count,
13411333 CompileTask::CompileReason compile_reason,
13421334 TRAPS) {
13431335 // Do nothing if compilebroker is not initialized or compiles are submitted on level none
@@ -1357,14 +1349,14 @@ nmethod* CompileBroker::compile_method(const methodHandle& method, int osr_bci,
13571349
13581350 DirectiveSet* directive = DirectivesStack::getMatchingDirective (method, comp);
13591351 // CompileBroker::compile_method can trap and can have pending async exception.
1360- nmethod* nm = CompileBroker::compile_method (method, osr_bci, comp_level, hot_method, hot_count, compile_reason, directive, THREAD);
1352+ nmethod* nm = CompileBroker::compile_method (method, osr_bci, comp_level, hot_count, compile_reason, directive, THREAD);
13611353 DirectivesStack::release (directive);
13621354 return nm;
13631355}
13641356
13651357nmethod* CompileBroker::compile_method (const methodHandle& method, int osr_bci,
13661358 int comp_level,
1367- const methodHandle& hot_method, int hot_count,
1359+ int hot_count,
13681360 CompileTask::CompileReason compile_reason,
13691361 DirectiveSet* directive,
13701362 TRAPS) {
@@ -1460,7 +1452,7 @@ nmethod* CompileBroker::compile_method(const methodHandle& method, int osr_bci,
14601452 return nullptr ;
14611453 }
14621454 bool is_blocking = !directive->BackgroundCompilationOption || ReplayCompiles;
1463- compile_method_base (method, osr_bci, comp_level, hot_method, hot_count, compile_reason, is_blocking, THREAD);
1455+ compile_method_base (method, osr_bci, comp_level, hot_count, compile_reason, is_blocking, THREAD);
14641456 }
14651457
14661458 // return requested nmethod
@@ -1607,13 +1599,12 @@ CompileTask* CompileBroker::create_compile_task(CompileQueue* queue,
16071599 const methodHandle& method,
16081600 int osr_bci,
16091601 int comp_level,
1610- const methodHandle& hot_method,
16111602 int hot_count,
16121603 CompileTask::CompileReason compile_reason,
16131604 bool blocking) {
16141605 CompileTask* new_task = CompileTask::allocate ();
16151606 new_task->initialize (compile_id, method, osr_bci, comp_level,
1616- hot_method, hot_count, compile_reason,
1607+ hot_count, compile_reason,
16171608 blocking);
16181609 queue->add (new_task);
16191610 return new_task;
0 commit comments