8244386: convert runtime/Safepoint/AssertSafepointCheckConsistency tests to gtest

Reviewed-by: stuefe, lfoltan, dcubed
This commit is contained in:
Coleen Phillimore 2020-08-26 07:55:05 -04:00
parent 0c20de1954
commit b978ebee46
9 changed files with 64 additions and 355 deletions

View file

@ -989,7 +989,7 @@ void Thread::check_possible_safepoint() {
if (_no_safepoint_count > 0) {
print_owned_locks();
fatal("Possible safepoint reached by thread that does not allow it");
assert(false, "Possible safepoint reached by thread that does not allow it");
}
#ifdef CHECK_UNHANDLED_OOPS
// Clear unhandled oops in JavaThreads so we get a crash right away.