Under the Hood of Isolates and the Dart VM Garbage Collector
summary
Explains how Dart VM implements isolates and its garbage collector, describing how an isolate maps to an OS thread, what happens at each GC stage, and other low-level mechanics. Covers current Dart VM limitations on how many isolates can be spawned efficiently.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 1:02Dart VM isolates and GC overview
- 3:31Speaker introduction
- 7:25Dart thread pool
- 10:39Mutator thread pool
- 12:06Mutator thread limits
- 14:53Isolate thread assignment
- 16:43Mutator preemption rules
- 19:53Thread class and isolates
- 20:59Object representation
- 22:07Young generation GC
- 26:49Write barrier and RMB set
- 27:32Old generation GC
- 28:57Three-color marking
- 31:31Concurrent marking
- 32:14Background cleaning
- 33:40Fragmentation and compaction
- 34:47Dart VM flags
- 36:55Key takeaways
- 39:47Isolate limits and async
- 41:15Closing and Q&A
