RFR: 8361912: ThreadsListHandle::cv_internal_thread_to_JavaThread does not deal with a virtual thread's carrier thread [v2]

David Holmes dholmes at openjdk.org
Wed Jul 23 00:03:54 UTC 2025


On Tue, 22 Jul 2025 21:55:56 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> I still think that it would be safer to explicitly specify that caller knows that jthread can be virtual thread 

I think that retains the risk of the caller not knowing they need to ensure they protect the carrier thread.

> Do you want to update ThreadSnapshotFactory::get_thread_snapshot to utilize new functionality

No, we had some internal discussions and that code is incorrectly using the JVMTI transition disabler, so it needs a complete overhaul. That will be handled separately.

Thanks again for looking at this in depth Alex.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/26287#issuecomment-3105187899


More information about the hotspot-dev mailing list