Skip to content

Commit

Permalink
8321066: Multiple JFR tests have started failing
Browse files Browse the repository at this point in the history
Reviewed-by: mcimadamore, jvernee, dcubed
  • Loading branch information
fisk committed Nov 30, 2023
1 parent 8bedb28 commit 7c135c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hotspot/share/prims/unsafe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
// to unsafe functions, if we have such async exception conditions,
// and return immediately if that is the case.
//
// We also use NoSafepointVerifier to block potential safepoints.
// We can't have safepoints in this code.
// It would be problematic if an async exception handshake were installed later on
// during another safepoint in the function, but before the memory access happens,
// as the memory will be freed after the handshake is installed. We must notice
Expand All @@ -97,8 +97,7 @@
// that is about to be freed. (i.e. there can be no UNSAFE_LEAF_SCOPED)
#define UNSAFE_ENTRY_SCOPED(result_type, header) \
JVM_ENTRY(static result_type, header) \
if (thread->has_async_exception_condition()) {return (result_type)0;} \
NoSafepointVerifier nsv;
if (thread->has_async_exception_condition()) {return (result_type)0;}

#define UNSAFE_END JVM_END

Expand Down

1 comment on commit 7c135c3

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.