Objects allocated on heap

后端 未结 4 595
孤城傲影
孤城傲影 2021-01-02 05:18

Whenever any new object is created, the object is created on heap. The memory allocated for each object has two additional fields 1) The type object pointer 2) sync block in

4条回答
  •  渐次进展
    2021-01-02 06:00

    Type object is what returned by obj.GetType call

    sync block used for synchronization

    See:

    • CLR Memory Model Part 1
    • CLR Memory Model Part 2
    • More on locks

提交回复
热议问题