8352994: ZGC: Fix regression introduced in JDK-8350572

Reviewed-by: aboldtch, tschatzl
This commit is contained in:
Stefan Karlsson 2025-04-09 06:19:08 +00:00
parent b045e3fbd7
commit 3340e13fd0
2 changed files with 1 additions and 2 deletions

View File

@ -61,7 +61,7 @@
// with callers to this function. Typically used to verify that object oops
// and headers are safe to access.
void z_verify_safepoints_are_blocked() {
if (VMError::is_error_reported_in_current_thread()) {
if (VMError::is_error_reported() && VMError::is_error_reported_in_current_thread()) {
// The current thread has crashed and is creating an error report.
// This may occur from any thread state, skip the safepoint_are_blocked
// verification.

View File

@ -38,4 +38,3 @@ sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java 8307393 generic-all
sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java 8307393 generic-all
com/sun/jdi/ThreadMemoryLeakTest.java 8307402 generic-all
com/sun/jdi/JdbStopInNotificationThreadTest.java 8351607 linux-all