• When you allocate on the GC heap, exactly what does it cost?

    当你从GC堆中分配内存时,它到底消耗什么资源呢?

    youdao

  • Each object allocated on the GC heap has an 8-byte overhead (sync block + method table pointer).

    每个在GC堆中分配的对象有一个8字节的头(同步块+方法表指针)。

    youdao

  • As you know value types are allocated on the stack unlike reference types which are allocated on the GC heap.

    就像你知道的那样,值类型是分配在栈上的,而引用类型是分配在GC堆上的。

    youdao

  • CLRProfiler is an awesome tool to use to look at your GC heap see what's in there and what's holding objects alive.

    CLRProfiler是查看GC堆非常好的工具,可以看到里面有什么对象和哪个对象保持有它的引用,使它成为活的对象。

    youdao

  • When you allocate the children of an object, if the children need to have similar life time as their parent they should be allocated at the same time so they will stay together on the GC heap.

    当你分配对象的子对象时,如果子对象的生存时间和父对象基本相同,他们应该被同时分配以使他们在GC堆中的位置也是相近的。

    youdao

  • When you allocate the children of an object, if the children need to have similar life time as their parent they should be allocated at the same time so they will stay together on the GC heap.

    当你分配对象的子对象时,如果子对象的生存时间和父对象基本相同,他们应该被同时分配以使他们在GC堆中的位置也是相近的。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定