RFR: 8352256: ObjectSynchronizer::quick_notify misses JFR event notification path [v3]
Markus Grönlund
mgronlun at openjdk.org
Tue Apr 1 21:30:27 UTC 2025
On Tue, 1 Apr 2025 21:20:11 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
>> src/hotspot/share/runtime/objectMonitor.cpp line 2054:
>>
>>> 2052: }
>>> 2053:
>>> 2054: quick_notifyAll(current);
>>
>> From a JFR perspective, we need threads in state VM or Java for writing events that refer to artifacts; both states are equivalent for epoch management. You can also have threads in native writing JFR events, but only if the event fields are scalars, not foreign keys. However, the thread cannot capture a stack trace.
>
> A JavaThread in state VM or Java running the JFR commit code will not perform a transition or block for a safepoint. It is not waitfree (yet) however because of the JfrStacktrace_lock.
Are we keeping the NoSafepointVerifier in the quick entries?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24097#discussion_r2023700561
More information about the hotspot-runtime-dev
mailing list