Because size of large object is significant, the cost of collection is significant also. Collection of large objects happens when collecting generation 2.
因为大对象的尺寸比较大,收集时成本比较高,所以对大对象的收集是在第2代收集时。
Because size of large object is significant, the cost of collection is significant also. Collection of large objects happens when generation 2 collecting.
因为大对象的尺寸比较大,收集时成本比较高,所以对大对象的收集是在第2代收集时。
Or, at a much higher cost of collection, it's possible to calculate an approximation of the percentage of overall CPU resources consumed by the thread for an execution.
或者,如果收集成本特别高的话,可以计算线程在执行时占用CPU资源的百分比的近似值。
应用推荐