none
Small objects in large object heap? RRS feed

  • Question

  • I use sos debug my application , and i find something amusing me . All documents say that only large objects in large object heap , but take a look at my output:
    0:007> !eeheap -gc
    Number of GC Heaps: 1
    generation 0 starts at 0x04a3850c
    generation 1 starts at 0x04a19828
    generation 2 starts at 0x01531000
    ephemeral segment allocation context: none
     segment    begin allocated     size
    .....
    Large object heap starts at 0x02531000
     segment    begin allocated     size
    02530000 02531000  03023050 0x00af2050(11477072)
    .............
    0:014> !dumpheap 02531000  03023050
     Address       MT     Size
    02531000 00329670       16 Free
    02531010 7912d8f8     4096    
    02532010 00329670       16 Free
    02532020 7912d8f8     4096    
    02533020 00329670       16 Free
    02533030 7912d8f8      528    
    02533240 00329670       16 Free
    ...........
    and lots of  such 16, 528, 4096 objects in my large heap . Why can such objects go into large heap?

    Tuesday, March 4, 2008 6:37 AM

Answers

  • LOH (Large Object Heap) contains objects that are 85,000 bytes or bigger, but there’s also some objects that are less than 85,000 bytes that are allocated on the LOH by the runtime itself. For more details, please visit Large Object Heap.
    Wednesday, March 5, 2008 8:50 AM