Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

;Heap

Tags: c#, computer-science, .net, memory-management

Short Definition: The heap is where objects store their value type data.

See Also:

What and where are the stack and the heap?

Memory allocation: stack vs heap.

  • Each application (aka process) receives its own heap
  • A heap contains discrete blocks of RAM.
  • The runtime allocates blocks to objects in an unenforced pattern.
  • On creation, an object receives memory from the heap.
  • On disposal, the object give its memory back to the heap.
  • Objects use the heap to store their value type and bookkeeping data.