RFR: 8361103: java_lang_Thread::async_get_stack_trace does not properly protect JavaThread [v2]
David Holmes
dholmes at openjdk.org
Tue Jul 8 01:22:40 UTC 2025
On Mon, 7 Jul 2025 19:36:36 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
>> src/hotspot/share/classfile/javaClasses.cpp line 1896:
>>
>>> 1894: return nullptr;
>>> 1895: }
>>> 1896: java_thread = java_lang_Thread::thread(carrier_thread);
>>
>> Won't `java_thread` already have been set correctly by `cv_internal_thread_to_JavaThread`?
>
> No. This is for virtual thread. We need to get JavaThread from the carrier
Got it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26119#discussion_r2191284693
More information about the hotspot-dev
mailing list