> The change fixes handling of "suspended" bit in VT state. > The code looks very strange. > java_lang_VirtualThread::RUNNING == 3, so line 803 clears > JVMTI_THREAD_STATE_ALIVE(1) and JVMTI_THREAD_STATE_TERMINATED(2) > Per log this code came from loom repo with VT integration. > > Testing: tier1-4, updated GetThreadStateMountedTest.java
Alex Menkov has updated the pull request incrementally with one additional commit since the last revision: check that VT is alive before applying suspend/interrupt bits ------------- Changes: - all: https://git.openjdk.org/jdk/pull/14878/files - new: https://git.openjdk.org/jdk/pull/14878/files/e2cf7c3c..084e9707 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=14878&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14878&range=00-01 Stats: 8 lines in 1 file changed: 3 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/14878.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/14878/head:pull/14878 PR: https://git.openjdk.org/jdk/pull/14878