~/talk

Continuations - Under the Covers

Talkat JVM Language Summit 2023 · 2023-08-07..08-09· [java, concurrency]
links:none on file
slides:none on file

Implementation moves continuation frames into heap stack chunks and uses a lazy copy strategy plus return‑barriers so only new frames are memcopied back to the thread stack, avoiding full-stack copies. GC is extended to treat chunks as objects, allow background bitmap building and later compress chunks, cutting continuation storage by >50% (possibly ~70%). Result: virtual-thread context switching costs drop to near pointer-switch speeds, scales to millions of continuations, and integrates with OpenJDK/loom and JEP 444.

AI-written summary · about

  1. 0:00Introduction to continuations
  2. 2:33Continuation API
  3. 4:58Thread state and blocking
  4. 7:23Stack management models
  5. 10:44Lazy frame copying
  6. 13:35GC challenges
  7. 16:06Stack chunk implementation
  8. 22:47Optimized suspension
  9. 30:11Performance and future goals
~/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.