Go Scheduler
summary
A concrete bug: a tiny increment loop can never finish because compiler misses runtime preemption points so goroutines never yield, causing increment loop hangs across implementations; explanation shows the scheduler’s G/M/P model and work‑stealing, how syscalls and stack‑growth callouts return an OS thread to goroutines, and why a micro‑optimization in strings.Split removed a safepoint and made GC stall. The talk cites tests, tries fixes (extra safepoints) and experiments, but no accepted fix exists yet — the patch idea slows hot paths badly.
AI-written summary · about
