--- old/src/share/vm/compiler/compileTask.cpp 2016-04-13 14:48:45.450218450 +0200 +++ new/src/share/vm/compiler/compileTask.cpp 2016-04-13 14:48:45.274218442 +0200 @@ -82,7 +82,7 @@ int comp_level, const methodHandle& hot_method, int hot_count, - const char* comment, + int compile_reason, bool is_blocking) { assert(!_lock->is_locked(), "bad locking"); @@ -104,7 +104,7 @@ _hot_method_holder = NULL; _hot_count = hot_count; _time_queued = 0; // tidy - _comment = comment; + _compile_reason = compile_reason; _failure_reason = NULL; if (LogCompilation) { @@ -305,9 +305,9 @@ xtty->begin_elem("task_queued"); log_task(xtty); - if (_comment != NULL) { - xtty->print(" comment='%s'", _comment); - } + assert(_compile_reason > CompileBroker::Reason_None && _compile_reason < CompileBroker::Reason_Count, "Valid values"); + xtty->print(" comment='%s'", CompileBroker::reason_names[_compile_reason]); + if (_hot_method != NULL) { methodHandle hot(thread, _hot_method); methodHandle method(thread, _method); @@ -436,3 +436,8 @@ } st->cr(); } + +bool CompileTask::can_become_stale() const { + return !_is_blocking && (_compile_reason < CompileBroker::Reason_Whitebox); +} +