this can get rid of the sawtooth pattern often seen for the managed heap size in .net-based applications, and reduces the time an application spends performing garbage collection.
这可以消除基于.net的应用程序中托管堆大小常见的锯齿模式,并且减少了应用程序为执行垃圾回收而花费的时间。
the garbage collector runs in its own thread to remove unused memory from your program. it also compacts the managed heap each time it runs.
垃圾收集器以自己的线程运行,从程序里移除未使用的内存,每次运行时也压缩托管堆。
the clr profiler enables you to view the managed heap of a process and investigate the behavior of the garbage collector.
利用clr探查器,可以查看进程的托管堆并调查垃圾回收器的行为。
each root either refers to an object on the managed heap or is set to null.
每个根或者引用托管堆中的对象,或者设置为空。
if all the objects in the managed heap survive a collection, then there is no need for memory compaction.
如果托管堆中的所有对象均未被回收,则不需要压缩内存。
the memory that is used by allocated objects on the managed heap surpasses an acceptable threshold.
所用内存分配的对象在托管堆上超过可接受的阈值。
the garbage collector then promotes these objects and considers this portion of the managed heap generation 1.
然后,垃圾回收器升级这些对象,并考虑第1级托管堆的这一部分。
after the garbage collector performs its first collection of generation 0 and promotes the reachable objects to generation 1, it considers the remainder of the managed heap generation 0.
在执行第0 级托管堆的首次回收并把可访问的对象升级至第1 级托管堆后,垃圾回收器将考虑第0 级托管堆的其余部分。
note that the managed heap is very efficient at allocating new objects, and the garbage collector is very efficient at collecting lots of small and short-lived objects.
请注意,托管堆在分配新对象方面非常有效,而垃圾回收器在收集大量生存期较短的小型对象方面非常有效。
a managed heap corruption occurrs if someone overwrites a piece of the managed heap that it wasn't allowed to.
向托管堆上覆写一块不允许写入的内存时,将发生托管堆损毁。