-XX:+UseG1GC的作用

-Xmx20M -XX:+UseG1GC -XX:+UseStringDeduplication

-XX:+UseG1GC  它会从内存中删除垃圾对象

-XX:+UseStringDeduplication  从内存中删除重复的字符串对象


文章连接:https://mp.weixin.qq.com/s?src=11×tamp=1578481977&ver=2084&signature=xh3lK4oifcB*o9oW-AfAHX4BNrpo9nNQmgC3Bo8jdzXTiaTEYd714HjYA85bUZy*S3MbpG5V6rlyF2ttOtsj1Wl9dLhV7g-sdAq5bQp1C-5J3gf6bRMxKfxayt0rWwBg&new=1

你可能感兴趣的:(-XX:+UseG1GC的作用)