当前位置:网站首页>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
边栏推荐
- golang 1.18 go work 使用
- Keil4 opens the single-chip microcomputer project to a blank, and the problem of 100% program blocking of cpu4 is solved
- Compile configuration in file
- Vsomeip3 dual computer communication file configuration
- 「幹貨」NFT 上中下遊產業鏈全景分析
- Golang 1.18 go work usage
- 安全Json协议
- 2022北京石景山区专精特新中小企业申报流程,补贴10-20万
- 在校生学习生涯总结(2022)
- Selenium saves elements as pictures
猜你喜欢

Utilisation d'abortcontroller

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

Use of abortcontroller

Analyse panoramique de la chaîne industrielle en amont, en aval et en aval de la NFT « Dry goods»

【ceph】CephFS 内部实现(二):示例--未消化

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

svg野人动画代码

el-dialog拖拽,边界问题完全修正,网上版本的bug修复

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

SQLite loads CSV files and performs data analysis
随机推荐
el-dialog拖拽,边界问题完全修正,网上版本的bug修复
AUTO sharding policy will apply DATA sharding policy as it failed to apply FILE sharding policy
nanoPi Duo2连接wifi
js创意图标导航菜单切换背景色
Using restcloud ETL shell component to schedule dataX offline tasks
【leetcode】48. Rotate image
When a project with cmake is cross compiled to a link, an error cannot be found So dynamic library file
【leetcode】112. Path sum - 113 Path sum II
AUTO sharding policy will apply DATA sharding policy as it failed to apply FILE sharding policy
Unable to download Plug-in after idea local agent
High frequency interview 𞓜 Flink Shuangliu join
Evaluate:huggingface detailed introduction to the evaluation index module
【leetcode】701. 二叉搜索树中的插入操作
[wechat applet] event binding, do you understand?
[CEPH] Introduction to cephfs caps
面试踩坑总结一
Utilisation d'abortcontroller
「干货」NFT 上中下游产业链全景分析
svg环绕地球动画js特效
Have you ever had a Kindle with a keyboard?