Java GC: why two survivor regions?

前端 未结 7 1502
旧巷少年郎
旧巷少年郎 2020-12-04 06:15

For Sun/Oracle\'s JVM, I\'ve read that the GC algo divides new generation into one Eden region and two survivor regions. What I\'m wondering about is, why two survivor regio

7条回答
  •  广开言路
    2020-12-04 06:24

    Two survivors are implementation of mark and copy algorithm. These are used in GC for younger generation. As mentioned by Ryan in option 3 here

提交回复
热议问题