generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
When using virtual threads in JDK 21, calling Thread.yield() during scheduling causes the corresponding virtual thread to enter an infinite loop instead of yielding the CPU, resulting in 100% CPU usage. However, when I replaced it with Thread.sleep(1), the issue disappeared.
Additionally, I tested this on my development machine (Windows 10, Microsoft OpenJDK 21), and the problem never occurred. I have the corresponding JFR file and would appreciate it if you could contact me to obtain the file and help resolve this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels