因为能够编辑这些类型精确的堆栈,所以在紧凑排列期间对象可以移动了,因而消除了残留碎片问题。
As we are able to edit these type-accurate stacks, we also remove the problem of residual fragmentation, as objects are no longer prevented from moving during compactions.
小的初始堆通过鼓励收集器尽早执行紧凑排列来降低碎片率。当堆很小时,紧凑排列成本很低。
Small initial heaps reduce fragmentation by encouraging the collector to perform compactions early, when the heap is small and the cost of compaction is lower.
gencon 策略使用一个复制收集器有效地紧凑排列会给每个收集带来负作用的婴儿(nursery)区域,从而避免碎片的产生。
The gencon policy avoids fragmentation by using a copying collector that efficiently compacts the nursery area as a side-effect of every collection.
应用推荐