Skip to content

Commit 7c135c3

Browse files
committedNov 30, 2023
8321066: Multiple JFR tests have started failing
Reviewed-by: mcimadamore, jvernee, dcubed
1 parent 8bedb28 commit 7c135c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/hotspot/share/prims/unsafe.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
// to unsafe functions, if we have such async exception conditions,
8484
// and return immediately if that is the case.
8585
//
86-
// We also use NoSafepointVerifier to block potential safepoints.
86+
// We can't have safepoints in this code.
8787
// It would be problematic if an async exception handshake were installed later on
8888
// during another safepoint in the function, but before the memory access happens,
8989
// as the memory will be freed after the handshake is installed. We must notice
@@ -97,8 +97,7 @@
9797
// that is about to be freed. (i.e. there can be no UNSAFE_LEAF_SCOPED)
9898
#define UNSAFE_ENTRY_SCOPED(result_type, header) \
9999
JVM_ENTRY(static result_type, header) \
100-
if (thread->has_async_exception_condition()) {return (result_type)0;} \
101-
NoSafepointVerifier nsv;
100+
if (thread->has_async_exception_condition()) {return (result_type)0;}
102101

103102
#define UNSAFE_END JVM_END
104103

0 commit comments

Comments
 (0)
Please sign in to comment.