forked from eclipse-openj9/openj9
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In JDK19+, multiple thread objects can be associated to a J9VMThread: a virtual thread and its carrier thread. If a virtual thread is mounted, then the carrier thread is unmounted and vice-versa. In such cases, J9VMThread's state should not be used to determine if a thread object is interrupted. Instead, Thread.interrupted is used to determine if a thread object is interrupted. If a mounted thread is suspended, only set Thread.interrupted to TRUE and do not wake/interrupt the thread. This behaviour is expected in GetThreadStateMountedTest, which is a test added for virtual threads in JDK22. These changes are only added for virtual threads in JDK19+. Related: eclipse-openj9#18810 Signed-off-by: Babneet Singh <[email protected]>
- Loading branch information
Showing
2 changed files
with
70 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters