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:
Tobias Hartmann 2018-07-10 15:33:55 +02:00
parent f57c7d1f4a
commit a16ca4799e
2 changed files with 2 additions and 3 deletions

View file

@ -963,7 +963,7 @@ bool Thread::owns_locks_but_compiled_lock() const {
// The flag: potential_vm_operation notifies if this particular safepoint state could potentially
// invoke the vm-thread (e.g., an oop allocation). In that case, we also have to make sure that
// no threads which allow_vm_block's are held
// no locks which allow_vm_block's are held
void Thread::check_for_valid_safepoint_state(bool potential_vm_operation) {
// Check if current thread is allowed to block at a safepoint
if (!(_allow_safepoint_count == 0)) {