oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.39k stars 1.64k forks source link

Add Loom support (VirtualThreads) to GraalVM #4621

Closed gato closed 1 year ago

gato commented 2 years ago

Add Loom support (Virtual Threads) to current version of GraalVM

Is your feature request related to a problem? Please describe. I've built GraalVM using Loom preview binaries as base. Building process worked flawlessly and projects that uses Loom's Virtualthreads can be built as well, but then fail when running more than a couple thousands Vthreads (threads start to hang with no visible error or exception)

Describe the solution you'd like. Binary GraalVM distribution with Loom's Virtual Threads support

Describe who do you think will benefit the most. GraalVM users, anyone that needs to create many threads that are basically I/O bound.

Describe alternatives you've considered. Building GraalVM from source.

oubidar-Abderrahim commented 2 years ago

Hi, Thank you for your suggestion, we will take a look into it and get back to you

dougxc commented 2 years ago

This will be delivered as part of the first GraalVM release based on JDK 19. The earliest ETA for that is GraalVM 22.3.

gato commented 2 years ago

Thanks! eager to try it :)

zakkak commented 1 year ago

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

Source https://github.com/oracle/graal/issues/4920#issuecomment-1268405609