Kevin Gosse 2/13/2024

Dumping the managed heap in C#

Read Original

This technical article dives into the internal layout of the .NET managed heap. It demonstrates unsupported, low-level C# code to locate and dump memory regions (like generations and LOH) from within a running application, using internal thread structures and pointers. It serves as an educational deep dive, with strong warnings against production use due to instability and version dependency.

Dumping the managed heap in C#

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week