Skip to content

Commit

Permalink
Merge pull request #2265 from MrXionGe/patch-1
Browse files Browse the repository at this point in the history
标记CMS收集器在JDK9之后被弃用
  • Loading branch information
Snailclimb authored Feb 18, 2024
2 parents 5f88d50 + 6f101dd commit 4da0cc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/java/jvm/jvm-garbage-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,8 @@ JDK1.8 默认使用的是 Parallel Scavenge + Parallel Old,如果指定了-XX:
- **无法处理浮动垃圾;**
- **它使用的回收算法-“标记-清除”算法会导致收集结束时会有大量空间碎片产生。**
**从 JDK9 开始,CMS 收集器已被弃用。**
### G1 收集器
**G1 (Garbage-First) 是一款面向服务器的垃圾收集器,主要针对配备多颗处理器及大容量内存的机器. 以极高概率满足 GC 停顿时间要求的同时,还具备高吞吐量性能特征.**
Expand Down

0 comments on commit 4da0cc7

Please sign in to comment.