Objects allocated on heap

后端 未结 4 575
孤城傲影
孤城傲影 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 05:41

    The sync block index is used under the hood by the Monitor class and thus the lock statement also.

提交回复
热议问题