On Fri, 3 Jul 2026 05:04:44 GMT, David Holmes <[email protected]> wrote:
>> One is the method executed for platform threads, the other for virtual >> threads. This comes from `AdapterClosure` used in `JvmtiHandshake::execute`. > > I don't understand - they are both checking vthread suspension. Do we have > different logic for virtual and non-virtual handshakers? We have the alternative implementation of virtual threads for platforms that don’t support continuations and are just backed by a platform thread. `JvmtiHandshake::execute` currently doesn’t mark those as virtual threads and routes them to `do_thread` instead of `do_vthread`. But we still require them to be suspended (`StopThread.java` tests this). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/31759#discussion_r3523457422
