8153013: BlockingCompilation test times out

Task has no invocation count and get stale at once

Reviewed-by: kvn, iveresov, twisti
This commit is contained in:
Nils Eliasson 2016-04-13 14:48:22 +02:00
parent c8593eff81
commit 90d0e9a566
12 changed files with 95 additions and 46 deletions

View file

@ -646,7 +646,7 @@ bool WhiteBox::compile_method(Method* method, int comp_level, int bci, Thread* T
return false;
}
methodHandle mh(THREAD, method);
nmethod* nm = CompileBroker::compile_method(mh, bci, comp_level, mh, mh->invocation_count(), "WhiteBox", THREAD);
nmethod* nm = CompileBroker::compile_method(mh, bci, comp_level, mh, mh->invocation_count(), CompileTask::Reason_Whitebox, THREAD);
MutexLockerEx mu(Compile_lock);
return (mh->queued_for_compilation() || nm != NULL);
}