与标志阶段类似,将死对象清理回自由内存池的耗费也不能完全预测。
As with the mark phase, the cost of sweeping dead objects back into the free memory pool can't be completely predicted.
这些线程通常都是轻量级的,用于执行缓存清理和对象清理之类的事务。
They are traditionally lightweight and used for executing tasks such as cache cleanup and object cleanup.
jvm会运行一个称为垃圾收集的过程,垃圾收集标出所有创建的对象,然后清理堆的其余部分供以后的分配使用。
A process known as garbage collection, run by the JVM, marks all known created objects and then cleans the rest of the heap for further allocations.
应用推荐