Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Virtual Threads (Project Loom) in Native Image #4920

Closed
christianwimmer opened this issue Sep 11, 2022 · 1 comment · Fixed by #4802
Closed

Support Virtual Threads (Project Loom) in Native Image #4920

christianwimmer opened this issue Sep 11, 2022 · 1 comment · Fixed by #4802
Assignees
Labels

Comments

@christianwimmer
Copy link

christianwimmer commented Sep 11, 2022

TL;DR

OpenJDK project Loom adds virtual threads to JDK 19 (as a preview feature at first). Everything supported in OpenJDK should also be supported in GraalVM Native Image.

Goals

Expand and finish the virtual thread support in GraalVM Native Image. Initial support had been added a while ago and is already available for the JDK 17 based version of GraalVM Native Image. But since then, the Project Loom API has changed considerably so the initial implementation needs to be updated. Also, we need to test that all places where JDK classes can yield virtual threads (locks, I/O, part events, ...) also yield properly on Native Image. Performance should be comparable to the HotSpot implementation.

Since virtual threads are a preview feature in OpenJDK, they will also be a preview feature for GraalVM Native Image.

Non-Goals

We will not provide virtual thread support for the GraalVM releases based on JDK 11 and JDK 17.

@fniephaus
Copy link
Member

Virtual Threads support has landed in GraalVM Native Image (see #4802). 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Released
Development

Successfully merging a pull request may close this issue.

4 participants
@fniephaus @christianwimmer @peter-hofer and others