mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8205472: Deadlock in Kitchensink when trying to print compile queues causing timeout
Do not acquire the MethodCompileQueue_lock in CompileBroker::print_compile_queues(). Reviewed-by: kvn, kbarrett, dholmes
This commit is contained in:
parent
f57c7d1f4a
commit
a16ca4799e
2 changed files with 2 additions and 3 deletions
|
@ -530,7 +530,6 @@ CompileQueue* CompileBroker::compile_queue(int comp_level) {
|
|||
|
||||
void CompileBroker::print_compile_queues(outputStream* st) {
|
||||
st->print_cr("Current compiles: ");
|
||||
MutexLocker locker(MethodCompileQueue_lock);
|
||||
|
||||
char buf[2000];
|
||||
int buflen = sizeof(buf);
|
||||
|
@ -546,7 +545,7 @@ void CompileBroker::print_compile_queues(outputStream* st) {
|
|||
}
|
||||
|
||||
void CompileQueue::print(outputStream* st) {
|
||||
assert(MethodCompileQueue_lock->owned_by_self(), "must own lock");
|
||||
assert_locked_or_safepoint(MethodCompileQueue_lock);
|
||||
st->print_cr("%s:", name());
|
||||
CompileTask* task = _first;
|
||||
if (task == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue