What's new in the .NET 5 GC?
summary
.NET 5 moves several concrete GC behaviors: it pushes decommit outside STW onto server GC threads and makes card-marking chunked with work stealing for better balance; it adds a vectorized quicksort (AVX2) ~7–8% sort speed for the mark list; it limits memory reset to high-pressure cases; it introduces a pinned object heap plus Allocate(…) and AllocateUninitialized(…) pinned APIs and per-heap hard limits; it ships an expanded GetGCMemoryInfo with detailed pause durations and cumulative pause percent; and it lays groundwork for regions replacing segments to enable space repurposing and future concurrent compacting GCs.
AI-written summary · about
chapters (22)
- 0:00Introduction to .NET 5 GC
- 1:12Internal GC improvements in .NET 5
- 7:31Vectorized sorting in GC
- 10:40Memory reset optimizations
- 12:06User-facing GC features
- 14:11Pinned object heap APIs
- 15:55GC heap limit configurations
- 18:03Diagnostics API in .NET 5
- 24:22Generational-aware tooling
- 31:06Q&A session
- 32:50Diagnostics API use cases
- 34:58GC collection triggers
- 39:59Generational analysis in PerfView
- 41:48Reference type restrictions
- 43:13.NET vs Java garbage collectors
- 47:30GC configuration tooling
- 51:26Future of .NET GC
- 57:09Concurrent compacting GC plans
- 58:11Cross-platform GC challenges
- 1:03:06Regions and arena APIs
- 1:06:37ARM64 support in GC
- 1:09:04GC team and contributions
