Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8274282: Clarify special wait assert #5684

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -387,7 +387,7 @@ void Mutex::check_rank(Thread* thread) {
// For JavaThreads, we enforce not holding locks of rank nosafepoint or lower while waiting
// because the held lock has a NoSafepointVerifier so waiting on a lower ranked lock will not be
// able to check for safepoints first with a TBIVM.
// For all threads, we enforce not waiting on the tty lock since that could block progress also.
// For all threads, we enforce not holding the tty lock or below, since this could block progress also.
// Also "this" should be the monitor with lowest rank owned by this thread.
if (least != NULL && ((least->rank() <= Mutex::nosafepoint && thread->is_Java_thread()) ||
least->rank() <= Mutex::tty ||