当前位置:网站首页>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
边栏推荐
- Binding method of multiple sub control signal slots under QT
- JS之简易deepCopy(简介递归)
- 【ceph】cephfs的锁 笔记
- [file] VFS four structs: file, dentry, inode and super_ What is a block? difference? Relationship-- Editing
- 北京房山区专精特新小巨人企业认定条件,补贴50万
- Evaluation - TOPSIS
- Summary of data interface API used in word search and translation applications
- 【微信小程序】事件绑定,你搞懂了吗?
- feil_ The working directory on the left of uvission4 disappears
- 2022 Beijing Shijingshan District specializes in the application process for special new small and medium-sized enterprises, with a subsidy of 100000-200000 yuan
猜你喜欢

Vsomeip3 dual computer communication file configuration

SVG大写字母A动画js特效

Particle filter PF - 3D CV target tracking with uniform motion (particle filter vs extended Kalman filter)

【SNMP】snmp trap 介绍、安装、命令|Trap的发送与接收代码实现

评价——TOPSIS

How to configure and use the new single line lidar

TweenMax+SVG切换颜色动画场景

AbortController的使用

【TcaplusDB知识库】TcaplusDB单据受理-创建游戏区介绍

High frequency interview 𞓜 Flink Shuangliu join
随机推荐
AUTO sharding policy will apply DATA sharding policy as it failed to apply FILE sharding policy
【思考】在买NFT的时候你在买什么?
IDEA本地代理后,无法下载插件
How to configure and use the new single line lidar
【leetcode】48.旋转图像
nanoPi Duo2连接wifi
为什么图像分割任务中经常用到编码器和解码器结构?
[CEPH] MKDIR | mksnap process source code analysis | lock state switching example
音视频学习(三)——sip协议
效率超级加倍!pycharm十个小技巧就是这么神
Audio and video learning (III) -- SIP protocol
Audio and video learning (II) -- frame rate, code stream and resolution
【ceph】CEPHFS 内部实现(一):概念篇--未消化
我想知道如何通过线上股票开户?在线开户安全么?
手机上怎么开户?在线开户安全么?
Evaluation - TOPSIS
NFT 平台安全指南(1)
Keil4 opens the single-chip microcomputer project to a blank, and the problem of 100% program blocking of cpu4 is solved
Mr. Du said that the website was updated with illustrations
Why are encoder and decoder structures often used in image segmentation tasks?