This website requires JavaScript.
Explore
Help
Register
Sign In
lostecho
/
Hui-s-notebook
Watch
1
Star
0
Fork
0
You've already forked Hui-s-notebook
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
main
Hui-s-notebook
/
CMS.md
Lostecho
1cd5bb460f
clear old record
2023-09-10 10:50:53 +08:00
615 B
Raw
Permalink
Blame
History
Concurrent Mark Sweep 以获取最短回收停顿内容为目标的收集器 基于
分代收集理论#标记清除算法
实现 执行步骤:
初始标记
并发标记
重新标记
并发清除 1,3需要
Stop the World
,初始标记标记GC Roots直接关联对象,并发标记通过GC Roots的关联对象开始遍历,重新标记则修正并发标记时程序运行改变的那一部分标记记录,最后清理删除标记死亡的对象 !
缺点
对处理器资源敏感(增量式并发收集器)
无法清理浮动垃圾
产生大量内存碎片
Reference in New Issue
View Git Blame
Copy Permalink