> 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

David Holmes has updated the pull request incrementally with one additional 
commit since the last revision:

  Move comment

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26287/files
  - new: https://git.openjdk.org/jdk/pull/26287/files/a195fe22..820f26e4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26287&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26287&range=00-01

  Stats: 12 lines in 2 files changed: 4 ins; 5 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/26287.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26287/head:pull/26287

PR: https://git.openjdk.org/jdk/pull/26287

Reply via email to