Mastering Memory Management and Garbage Collection in .NET - Learning Roadmap | Nemorize

2 min read Original article ↗

← Back to Roadmaps

Loading roadmap...

Learning Topics

This roadmap covers the following topics:

Memory Fundamentals

Garbage Collection Fundamentals

  • Generational Model
    • ⚪ Gen0 ephemeral collection
    • ⚪ Promotion mechanics
    • ⚪ Gen2 and full collections
  • GC Roots and Tracing
    • ⚪ Root types
    • ⚪ Mark and sweep
    • ⚪ Finalization pipeline
  • Collection Triggers
    • ⚪ Allocation threshold
    • ⚪ Induced collections
    • ⚪ Memory pressure signals

GC Modes and Adaptive Behavior

  • Workstation vs Server GC
    • ⚪ Workstation GC
    • ⚪ Server GC
    • ⚪ Choosing the right mode
  • Background and Concurrent GC
    • ⚪ Background GC mechanics
    • ⚪ Foreground vs background pauses
    • ⚪ Non-concurrent workstation fallback
  • DATAS
    • ⚪ Allocation rate feedback
    • ⚪ Latency vs throughput decisions
    • ⚪ What DATAS doesn't change

Retention Bugs in Managed Code

  • ⚪ Event Handler Leaks
    • ⚪ Strong references via delegates
    • ⚪ Unsubscribe patterns
    • ⚪ Static event anti-pattern
  • ⚪ Cache and Collection Leaks
    • ⚪ Unbounded static caches
    • ⚪ Dictionary key retention
    • ⚪ TimerQueue and callback leaks
  • Diagnostic Techniques
    • ⚪ Memory snapshots and diffs
    • ⚪ Shortest root path analysis
    • ⚪ GC event traces

Modern Allocation Primitives

Buffer Ownership and Pooling

  • ArrayPool<T>
    • ⚪ Rent and return discipline
    • ⚪ Shared vs custom pools
    • ⚪ Array size bucketing
  • IBufferWriter<T> and Writers
    • ⚪ IBufferWriter<T> contract
    • ⚪ ArrayBufferWriter<T>
    • ⚪ Custom writer implementations
  • ReadOnlySequence<T>
    • ⚪ Segment-based enumeration
    • ⚪ SequenceReader<T>
    • ⚪ Position and slicing

Community Feedback

Share your thoughts and rate this roadmap

Sign in to share your feedback and rate this roadmap

No comments yet. Be the first to share your feedback!

Node Title