参数
-XX:G1MixedGCCountTarget=8
-XX:G1HeapWastePercent=5
<span style="color: rgb(22, 21, 19); font-family: "Courier New", monospace; font-size: 15.36px; background-color: rgba(33, 30, 28, 0.03);">-XX:G1OldCSetRegionThresholdPercent=10</span>
-XX:G1ReservePercent=10
-XX:G1MixedGCLiveThresholdPercent=85
回收过程
根据参数选择出,要加入CSet的老年代集合
扫描对应的RSet,将CSet中的老年代区域的RSet指向的对象加入根区域
。。。。
释放RSet