~/talk

How the Multicore Garbage Collector works

Talkat FUN OCaml 2024 · 2024-09-16..09-17· [compilers-and-language-design]
slides:none on file

OCaml 5 ships a multicore GC that keeps sequential performance by using a shared major heap plus per-domain minor heaps (minor default ~2MB) and bump-pointer allocation for fast allocs. Minor collections stop the world across domains and copy live objects to the major heap; the major GC is incremental mark-and-sweep with per-domain mark stacks and disjoint sweeping. Compaction runs in-place but is manual on multicore for now. Design builds on ICFP 2020 “Retrofitting Parallelism,” after ~7 years of work.

AI-written summary · about

  1. 0:00Introduction to multicore GC
  2. 1:04History of multicore support
  3. 2:09GC trade-offs and memory layout
  4. 3:56Pointers and metadata in OCaml
  5. 5:24Generational heap in OCaml
  6. 6:48Key takeaways for OCaml programs
  7. 8:14Minor heap allocation and collection
  8. 11:43Minor GC collection process
  9. 13:25Multicore GC architecture
  10. 15:59Stop-the-world minor collection
  11. 17:25Major heap Mark and sweep
  12. 18:49Marking phase in major GC
  13. 21:44Sweeping phase in major GC
  14. 23:15Multicore major GC details
  15. 24:44Allocator and collector interaction
  16. 25:49Heap compaction in OCaml
  17. 26:33Final key takeaways
  18. 27:18Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.