RFR: 8370344: Arbitrary Java frames on stack during scoped access [v5]
Jorn Vernee
jvernee at openjdk.org
Mon Nov 3 17:30:46 UTC 2025
On Mon, 3 Nov 2025 16:39:23 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
>> Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update bug number in tests
>>
>> Co-authored-by: Chen Liang <liach at openjdk.org>
>
> src/hotspot/share/prims/scopedMemoryAccess.cpp line 53:
>
>> 51: #endif
>> 52:
>> 53: bool agents_loaded = JvmtiAgentList::has_agents();
>
> I see that for dynamically loaded agents we add to the list after loading the agent. Maybe we should check `JvmtiEnvBase::environments_might_exist()`?
Ah, thanks for the suggestion. I thought there might have been a way to check this already, but I couldn't find it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27919#discussion_r2487315255
More information about the hotspot-dev
mailing list