当前位置:网站首页>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
边栏推荐
- On which platform is it safe to buy shares and open an account? Ask for guidance
- sqlite加载csv文件,并做数据分析
- [CEPH] Introduction to cephfs caps
- Selenium saves elements as pictures
- 【leetcode】701. 二叉搜索树中的插入操作
- Beijing Fangshan District specialized special new small giant enterprise recognition conditions, with a subsidy of 500000 yuan
- SVG大写字母A动画js特效
- 音视频学习(一)——PTZ控制原理
- Binding method of multiple sub control signal slots under QT
- CNN optimized trick
猜你喜欢

【ceph】CephFS 内部实现(二):示例--未消化
![[problem solving] the loading / downloading time of the new version of webots texture and other resource files is too long](/img/31/d14316dca740590c1871efe6587e04.png)
[problem solving] the loading / downloading time of the new version of webots texture and other resource files is too long

SQLite loads CSV files and performs data analysis

反射修改final

效率超级加倍!pycharm十个小技巧就是这么神

【ceph】CephFS 内部实现(四):MDS是如何启动的?--未消化

【毕业季·进击的技术er】 什么是微信小程序,带你推开小程序的大门

Summary of data interface API used in word search and translation applications

Notes on brushing questions (19) -- binary tree: modification and construction of binary search tree

Solana扩容机制分析(2):牺牲可用性换取高效率的极端尝试 | CatcherVC Research
随机推荐
全面解析Discord安全问题
Summer camp is coming!!! Chongchongchong
Mr. Du said that the website was updated with illustrations
反射修改final
How to handle 2gcsv files that cannot be opened? Use byzer
CNN optimized trick
【leetcode】701. 二叉搜索树中的插入操作
[tcapulusdb knowledge base] Introduction to tcapulusdb system management
Secure JSON protocol
一篇博客彻底掌握:粒子滤波 particle filter (PF) 的理论及实践(matlab版)
SQLite loads CSV files and performs data analysis
JS events
【问题解决】新版webots纹理等资源文件加载/下载时间过长
Selenium saves elements as pictures
在哪个平台买股票开户安全?求指导
夏令营来啦!!!冲冲冲
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area
「幹貨」NFT 上中下遊產業鏈全景分析
【C语言练习——打印空心上三角及其变形】
「干货」NFT 上中下游产业链全景分析