r/java • • Apr 06 '22

JEP 425: Virtual Threads (Preview)

https://openjdk.java.net/jeps/425
175 Upvotes

50 comments sorted by

View all comments

29

u/Slanec Apr 06 '22

FYI, this is "only" the Virtual Threads part of Loom. Structured Concurrency and Scope Locals are not there yet.

15

u/Joram2 Apr 06 '22

Sure. But Virtual threads are the main feature of Loom. Those other two are important supporting functionality and I hope all three get delivered as non-preview features by LTS JDK 23.

6

u/PepegaQuen Apr 06 '22

Next LTS is 21, and there is small chance that anything Loom related will be non-preview.

3

u/Joram2 Apr 06 '22

That's disappointing. Pattern matching in switch will be the only major non-preview feature since 17. And that's a small feature.

Oh well.

8

u/[deleted] Apr 07 '22

I watched a YouTube video on the Oracle channel about ZGC recently. It's a pretty good improvement apparently. And JDK 18 is the best performing version of it yet.