RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v7]
Serguei Spitsyn
sspitsyn at openjdk.org
Thu Oct 17 23:28:14 UTC 2024
On Thu, 17 Oct 2024 23:14:50 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
>> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
>>
>> no need in raw monitor - removed
>
> test/hotspot/jtreg/serviceability/jvmti/events/NotifyFramePopStressTest/libNotifyFramePopStressTest.cpp line 66:
>
>> 64: char* name = nullptr;
>> 65:
>> 66: pop_count++;
>
> I think there is still a concern that once this increment is done, the next iteration in control() can start. It will try to suspend this thread, which I think can happen in the 3 JVMTI calls below, and controll() will then call NotifyFramePop(), which will clobber last_notify_method. I think just moving this increment to the end will resolve that issue, or at least move it to after the last_notify_method reference.
I agree, it is more safe to move the increment to the end. Moved now.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21468#discussion_r1805583958
More information about the serviceability-dev
mailing list