RFR: 8361103: java_lang_Thread::async_get_stack_trace does not properly protect JavaThread [v2]
Alex Menkov
amenkov at openjdk.org
Thu Jul 10 21:40:39 UTC 2025
On Thu, 10 Jul 2025 07:45:51 GMT, David Holmes <dholmes at openjdk.org> wrote:
> I was thinking simply(?) to change `cv_internal_thread_to_JavaThread` so that it extracts the carrier for a vthread and checks it is within the given threads-list.
I prefer to keep the current behavior for existing callers to be sure they are not affected.
Added extra argument to `cv_internal_thread_to_JavaThread` to return carrrier's JavaThread.
> > Also we need a way to check if specific vthread is mounted to JavaThread (to be checked in handshake)
>
> Not sure that would be of general use as the answer could change the instant you return from the operation. Explicit checks for being mounted are done within the handshake/safepoint op code as needed.
Ok, kept it as it is
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26119#discussion_r2198803351
More information about the hotspot-dev
mailing list