郑老师好,对于针对新生代的垃圾回收器共有三个:Serial,Parallel Scavenge 和 Parallel New。这三个采用的都是标记 - 复制算法,其中Serial GC,新生代使用标记复制算法这个说法,有官方出处吗?因为我先看的官方说明地址如下(JDK1.7)https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html,按照文档的定义
Young Generation对应minor garbage collection,Old Generation对应major garbage collection
然后在The Serial GC 收集器的说明中,有如下描述
1.The serial collector is the default for client style machines in Java SE 5 and 6. With the serial collector, (both minor and major garbage collections are done serially) (using a single virtual CPU). In addition, it uses (a mark-compact) collection method
对于Serial,算法到底是mark-compact 还是还是mark-copy?或者不同年代,还区分不同算法来进行垃圾收集?
展开