What JDK 19 Actually Shipped
Java Development Kit 19, due this September, is now feature-complete, and is now in a second rampdown phase. Seven features target the release including structured concurrency, record patterns, a preview of a foreign function and memory API, and support for the open source Linux/RISC-V…
JDK 19 landed in September 2022 with seven features — two of them the start of Project Loom's answer to Java's oldest scaling complaint. Here's what shipped and what it actually did.
Virtual threads — the headline
Virtual threads decouple Java threads from OS threads: millions of lightweight threads multiplexed onto a few carrier threads. The practical change is that "a thread per request" — the model Java abandoned when it outgrew thread pools — became cheap again. I/O-bound servers stopped needing reactive plumbing to scale.
Record patterns and the rest
Record patterns (preview) destructure records in instanceof and switch — pattern matching stops needing manual getters. Foreign Function & Memory API (preview) replaced JNI's horror for calling native code: safe-ish memory access without the ceremony. Vector API kept incubating — SIMD for computations. Structured concurrency (incubator) shaped task trees so failures propagate sanely. RISC-V port and pattern matching for switch (third preview) rounded it out.
What mattered in practice
Virtual threads were the release's real story — the rest incubated quietly until later JDKs stabilized them. If you're on an LTS today, most of this reached you through 21 anyway, where virtual threads finalized.
$ tail -f /forums
Discussion
Comments live on the community forums — sign in there to reply.