8316538: runtime/handshake/MixedHandshakeWalkStackTest.java crashes with JFR

Reviewed-by: egahlin
This commit is contained in:
Markus Grönlund 2023-11-02 12:17:18 +00:00
parent 2d4a4d04b8
commit 4f808c62b0

View File

@ -112,7 +112,6 @@ void JfrPostBox::asynchronous_post(int msg) {
void JfrPostBox::synchronous_post(int msg) {
assert(is_synchronous(msg), "invariant");
assert(!JfrMsg_lock->owned_by_self(), "should not hold JfrMsg_lock here!");
NoHandleMark nhm;
ThreadBlockInVM transition(JavaThread::current());
MonitorLocker msg_lock(JfrMsg_lock, Mutex::_no_safepoint_check_flag);
deposit(msg);