而且,优化掉一些分配,可以降低垃圾收集器的压力,从而让收集运行得更少。
Further, optimizing away some allocations reduces pressure on the garbage collector and allows collection to run less often.
对象是否被释放取决于垃圾收集器的算法以及垃圾收集器运行时可用的内存数量。
Whether the object is freed depends on the algorithm of the garbage collector as well as the amount of memory available while the collector is running.
Verbose GC 日志能够洞察垃圾收集器的操作,并为策略和参数选择提供提示。
Verbose GC logs give insight into the operation of the garbage collector and can give hints about policy and parameter choices.
应用推荐