以Java HotSpot VM为例,请分别说说CMS,G1,Shenandoah,ZGC在并发标记时对漏标

  1. CMS:写屏障 + 增量更新 ;
  2. G1,Shenandoah:写屏障 + SATB;
  3. ZGC:读屏障;