RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v9]
Serguei Spitsyn
sspitsyn at openjdk.org
Fri Oct 18 18:29:40 UTC 2024
On Fri, 18 Oct 2024 01:11:32 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> There is a race between JVMTI NotifyFramePop function and FramePop event posting code.
>> The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with depth 0 is requested by NotifyFramePop at the time when the target frame is in exit epilogue, and MethodExit/FramePop events are being posted for it.
>>
>> Testing:
>> - verified locally with new test (developed by Chris): `serviceability/jvmti/events/NotifyFramePopStressTest`
>> - TBD: mach5 tiers 1-6
>
> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
>
> review: minor tweaks in test log and static vars initialization
Chris and Alex, thank you for review!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21468#issuecomment-2423012469
More information about the hotspot-dev
mailing list