8303805: [REDO] JDK-8302189 and JDK-8302799

Reviewed-by: dholmes, coleenp
This commit is contained in:
Kim Barrett 2023-03-29 23:45:03 +00:00
parent b524a74165
commit b3ff8d1c89
12 changed files with 213 additions and 52 deletions

View file

@ -376,6 +376,9 @@ void JavaThread::check_possible_safepoint() {
}
void JavaThread::check_for_valid_safepoint_state() {
// Don't complain if running a debugging command.
if (DebuggingContext::is_enabled()) return;
// Check NoSafepointVerifier, which is implied by locks taken that can be
// shared with the VM thread. This makes sure that no locks with allow_vm_block
// are held.