• Sources: primary
  • Summary: Inside Java Newscast #117, published 2026-11-14, says JDK 28's adaptive heap sizing for ZGC, JEP 546, balances CPU use against memory consumption with close-to-zero configuration. It says value classes complicate conversions between custom numeric types, which type classes could eventually address, and that unresolved questions about how these features interact mean primitive patterns will not return in JDK 28 and will be withdrawn.
  • Why it matters: Code that uses the primitive patterns preview needs a plan to drop it, and ZGC users may be able to stop hand-tuning heap size on JDK 28.
  • Background: Primitive types in patterns let instanceof and switch match on int, long, double and other primitives, and have shipped only as a preview feature, which needs --enable-preview and can change or be removed. Value classes from Project Valhalla are classes without identity, meant among other things to make user-defined numeric types efficient. ZGC is the JDK's low-latency concurrent garbage collector, whose heap size operators usually set with flags such as -Xmx.