📜 ⬆️ ⬇️

Memory Management in the .Net Framework from Redgate


Recently, the Redgate newsletter (this is the company that released the well-known .Net Reflector, SmartAssembly, and others) received a free book, Under the Hood of .NET Memory Management. So far, only the first part of it is available, but it is rather voluminous and reveals many aspects of memory management. The most tasty promise in the second part. Enjoy your download (short content under the cat):



A bonus on the first link, in the same archive, is a book on the ANTS Memory Profiler
')


Chapter 1: Prelude
  • Stack
  • Heap
  • More on value and reference types
  • Passing parameters
  • Boxing and unboxing
  • More on the Heap
  • Garbage collection
  • Static objects
  • Static methods and fields
  • Thread statics

Chapter 2: The Simple Heap Model
  • Managed heaps
  • How big is an object?
  • Small object heap
  • Optimizing garbage collection
  • Generational garbage collection
  • Finalization
  • Large Object Heap


Chapter 3: A Little More Detail
  • What I Didn't Tell You Earlier
  • The card table
  • A Bit About Segments
  • Garbage Collection Performance
  • Workstation GC mode
  • Server GC mode
  • Configuring the GC
  • Runtime GC Latency Control
  • GC Notifications
  • Weak References
  • Under the hood
  • More on the LOH
  • Object Pinning and GC Handles
  • Gc handles
  • Object pinning
  • Problems with object pinning

Source: https://habr.com/ru/post/141032/


All Articles