~/talk

Project Valhalla: Flat Value Types in Java

Talkat JCON EUROPE 2025 · 2025-05-12..05-15· [java, compilers-and-language-design]
links:none on file
slides:none on file

Project Valhalla adds a new value modifier so small data classes flatten like primitives, removing per-instance heap headers; a 100M-point Brownian demo shows 100M allocations become zero (3 GB -> ~24 MB) and a tuned benchmark yields about 50% faster execution when allocation overhead is removed. Try it by building the Valhalla OpenJDK, enable preview, record with JFR + Java Mission Control and inspect JIT output with JITWatch; watch out for nullability/strict-init and tearing (long/double) which requires explicit non-null/tear annotations today.

AI-written summary · about

  1. 0:00Introduction to Valhalla
  2. 1:50Why we need value types
  3. 6:01Understanding value classes
  4. 10:11Getting started with Valhalla
  5. 13:24Memory and GC analysis
  6. 18:00JIT compilation and performance
  7. 24:57Refining benchmarks
  8. 27:48Handling nullability
  9. 30:56Strict initialization
  10. 33:36Phase 2 feature testing
  11. 36:20Tearing and atomicity
  12. 39:15The future of Valhalla
  13. 42:21Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.