title: I there any relation between pinned object and memory fragmentation in .NET
body: <blockquote>
  <p>A pinned object is one that is not allowed to move. The garbage
  collector is normally compacting the memory in that it moves all
  objects to &quot;one or more clusters&quot;. This is to create large chunks of
  free space.</p>
  </blockquote>
  <p>Please consider this picture:
  <a href="https://i.stack.imgur.com/vELJh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vELJh.png" alt="enter image description here" /></a></p>
  <p>Why GC cannot defragment the G0?Is there any relation between pinned object and memory fragmentation?</p>