当前位置:网站首页>JVM notes
JVM notes
2022-06-26 15:47:00 【YMY_ six hundred and sixty-six】
How to determine which objects need to be recycled ?
Root reachability algorithm , If the root unreachable object is not referenced by any method, then the useless object can be recycled
What are the garbage collection algorithms ?
- Mark removal will clear the garbage objects , But it will lead to discontinuous memory space .
- Tag compression not only removes garbage objects, but also compresses useful objects into one piece , Free up contiguous memory space , So it is better than mark removal .
- Copy is to copy useful objects to a new area after clearing , such as JVM
youngGC All the new generation of useful objects will be copied to an empty survive Area and then eden Area and another survivor All objects in the zone are cleared ,survivor0 and survivor1 Two zones rotate, and one zone is always empty , Every time it happens youngGC Will copy all the surviving objects in one area to another survive District , It is also to solve the problem of memory fragmentation .
What are the garbage collectors ?
Serial Serial garbage collector , Single thread garbage collection ,GC Time meeting STW, All business threads stop, etc GC Only when it's over , Small memory is OK , Large memory garbage collection takes a long time
CMS concurrent mark sweep Concurrent tag scan , In order to solve STW And was born , You can recycle and execute business threads at the same time
G1
Tri-color Marking Algorithm
Objects found by both yourself and the objects you reference are marked black
Objects found by themselves but not found by the objects they reference are marked as gray
Objects that are not found by themselves are marked white
边栏推荐
- Why are encoder and decoder structures often used in image segmentation tasks?
- TweenMax+SVG切换颜色动画场景
- Application of ansible automation
- selenium将元素保存为图片
- NFT 平台安全指南(1)
- AUTO sharding policy will apply DATA sharding policy as it failed to apply FILE sharding policy
- AbortController的使用
- Summer camp is coming!!! Chongchongchong
- 【leetcode】701. Insert operation in binary search tree
- 在重新格式化时不要删除自定义换行符(Don‘t remove custom line breaks on reformat)
猜你喜欢

「干货」NFT 上中下游产业链全景分析

IDEA本地代理后,无法下载插件

2Gcsv文件打不开怎么处理,使用byzer工具

NFT 项目的开发、部署、上线的流程(1)

「幹貨」NFT 上中下遊產業鏈全景分析
![[CEPH] Introduction to cephfs caps](/img/41/7d59ecbc1129503c8858dc0304a3f9.png)
[CEPH] Introduction to cephfs caps

Applet: uniapp solves vendor JS is too large
![[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area

查词翻译类应用使用数据接口api总结

【微信小程序】事件绑定,你搞懂了吗?
随机推荐
Inaccurate data accuracy in ETL process
【ceph】CephFS 内部实现(三):快照
【思考】在买NFT的时候你在买什么?
CNN优化trick
JS之事件
Solana扩容机制分析(2):牺牲可用性换取高效率的极端尝试 | CatcherVC Research
【文件】VFS四大struct:file、dentry、inode、super_block 是什么?区别?关系?--编辑中
效率超级加倍!pycharm十个小技巧就是这么神
js创意图标导航菜单切换背景色
还存在过有键盘的kindle?
有Cmake的工程交叉编译到链接时报错找不到.so动态库文件
【毕业季·进击的技术er】 什么是微信小程序,带你推开小程序的大门
Is it safe to buy stocks and open accounts through the QR code of the securities manager? Want to open an account for stock trading
粒子滤波 PF——在机动目标跟踪中的应用(粒子滤波VS扩展卡尔曼滤波)
el-dialog拖拽,边界问题完全修正,网上版本的bug修复
High frequency interview 𞓜 Flink Shuangliu join
selenium chrome 禁用js 禁用图片
golang 1.18 go work 使用
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area
Is it safe to open a stock account through the account opening link of the broker manager? Or is it safe to open an account in a securities company?