8302189: Mark assertion failures noreturn

8302799: Refactor Debugging variable usage for noreturn crash reporting

Reviewed-by: dholmes, coleenp
This commit is contained in:
Kim Barrett 2023-03-08 02:37:06 +00:00
parent 9b10c69475
commit 5fa9bd4582
8 changed files with 146 additions and 40 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.