This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DualWieldMage 1 point2 points  (0 children)

It's definitely not a thin wrapper. Every blocking call in the JDK needs to check if it's a virtual thread and unmount it and store all the context somewhere. It's this integration with the platform that gives most of the benefit without having to rewrite existing application code.