what is the difference between managed heap and GC heap

2.4k views Asked by At

Can anyone explain to me the difference between managed heap and GC heap? Since I noticed that sometimes the total managed heap size < (Gen 0 + Gen 1 + Gen 2 + LOH) in Process explorer + VMMap.

In my mind the total managed heap should be equal GC heap(Gen0-2+LOH),why in the .NET Performance tab of Process explorer, the total GC heap size is larger than the managed heap size in VMMap?

1

There are 1 answers

0
slash shogdhe On
GC HEAP

GC Heap hosts object instances and Generations are the logical view of the garbage collector heap

MANAGED HEAP

A managed heap segment is a chunk of memory that the garbage collector reserves from the OS (via calling VirtualAlloc) on behalf of managed code

LOADER HEAP

LoaderHeaps hold together the type system it is further divided in 1> High frequency heap 2> low frequency heap 3> Stub Heap

you can also use SOS to verify these heap

!eeheap -loader

!eeheap - GC

!GCRoot [-nostacks] [object reference]