~/talk

GHC's Runtime System

Talkat 2023 GHC Contributors' Workshop · 2023-06-07..06-09· [haskell]
links:none on file
slides:none on file

GHC’s runtime is described concretely: codegen exposes registers R1..R10 and special registers like CurrentTSO, allocation uses an Hp/HpLimit bump-pointer nursery (example: a 5-word / 40‑byte allocation), stacks use chunked Sp/SpLim regions, and the storage manager requests 1MB megablocks then slices into ~4KB blocks (can reserve ~1TB address space). The GC is generational with remembered sets; thunks use blackholing to indirections (eager vs lazy); schedulers use capabilities/tasks and TSOs with run queues and work‑pushing. Tooling: ThreadSanitizer, rr+gdb, Valgrind, +RTS flags; code pointers: InfoTables.h, Storage.c, HeapStackCheck.cmm, GC.c, Linker.c, utils/genapply; bytecode VM is a 16‑bit stack machine.

AI-written summary · about

  1. 0:00GHC runtime intro
  2. 1:12Runtime overview
  3. 5:16STG machine recap
  4. 14:24Chunked stack
  5. 25:15Heap and nursery
  6. 32:55Closure types
  7. 43:23Thunk allocation
  8. 57:15Break recap
  9. 58:01Storage manager
  10. 1:00:32Megablock allocator
  11. 1:08:23Heap checks & GC
  12. 1:10:39Green threading
  13. 1:18:27Thread scheduler
  14. 1:23:08GHCi linker
  15. 1:26:47Debugging tools
~/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.