On Mon, 14 Jul 2025 05:34:57 GMT, David Holmes <dhol...@openjdk.org> wrote:
> The `cv_internal_thread_to_JavaThread` method will now check if the thread is > a mounted virtual thread, and if so protect the carrier thread. User's of the > API that need to deal with virtual threads must still check the carrier > themselves as it could change asynchronously, but it is now guaranteed that > the carrier JavaThread returned via this method cannot terminate whilst being > used (the same as regular platform JavaThreads). > > It was noticed whilst updating the documentation that the `JvmtiExport` > variant `cv_oop_to_JavaThread` is unused and so can be removed. > > Testing: > - tiers 1-4 > > Thanks This pull request has now been integrated. Changeset: 46690051 Author: David Holmes <dhol...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/4669005123420d8dbe86740dd9bcbee04735bc4f Stats: 84 lines in 4 files changed: 18 ins; 54 del; 12 mod 8361912: ThreadsListHandle::cv_internal_thread_to_JavaThread does not deal with a virtual thread's carrier thread Reviewed-by: pchilanomate, dcubed, amenkov, sspitsyn ------------- PR: https://git.openjdk.org/jdk/pull/26287