当前位置:网站首页>ZGC concurrent identity and multi view address mapping in concurrent transition phase
ZGC concurrent identity and multi view address mapping in concurrent transition phase
2022-06-12 21:22:00 【lixia0417mul2】
M0,M1,Remapped The three multi view address mappings are zgc The key premise to realize concurrency identification and concurrency transfer , These three addresses actually correspond to the same physical address , Corresponding to the same underlying object , Broadly zgc The address mapping transformation relationship in the process is as follows :
The first round zgc:
1. Initial identification stage
The address views of objects in the initial identification phase are Remapped
2. Concurrency identification phase
The address of the surviving object is from Remapped Address becomes M0 Address , The address of the non surviving object remains Remapped Mapping phase , The address view of the newly allocated object in this phase is M0
3. Concurrent transition phase
The living object ( The address view is M0) Is moved to a new address space and re identified as Remapped Address view , Non living objects ( The address view is Remapped) Will be garbage collected , The address view of the newly allocated object in this phase is Remapped
The second round zgc:
1. Initial identification stage
The address views of objects in the initial identification phase are Remapped, perhaps M0,M0 The reason for the address view is that some objects have not been transferred or accessed in the previous round of concurrent transfer , Therefore, the status after the last round of concurrent identification is still maintained M0 View .– Here comes another meaning , In a round of zgc in , Although it marks the whole heap space , But not all tagged live objects are transferred , Not all garbage objects are recycled , For those pages with a small proportion of garbage , In a round of zgc The surviving objects in these pages will not be transferred , Garbage objects are not recycled .
2. Concurrency identification phase
The address of the surviving object is from Remapped/M0 Address becomes M1 Address , The address of the non surviving object remains Remapped/M0 Mapping phase , The address view of the newly allocated object in this phase is M1
3. Concurrent transition phase
The living object ( The address view is M1) Is moved to a new address space and re identified as Remapped Address view , Non living objects ( The address view is Remapped perhaps M0) Will be garbage collected , The address view of the newly allocated object in this phase is Remapped
Rear multi wheel zgc in , The object view of the concurrency identifier will be displayed in M0 and M1 Alternate between
Besides zgc Fast multi view mapping in , Each time from Remapped Mark it as M0 perhaps M1 You only need to change the number in the object address 42 Position to the first 45 Bit can complete the address mapping operation , and cms perhaps g1 To mark an object in, you need to access the object header of the specific object pointed to by the object address , And mark the flag bit in the object header , This process involves accessing object memory , and zgc No need to access object memory , This is also zgc The reason why it is faster .
边栏推荐
- 测试基础之:单元测试
- 杨辉三角代码实现
- GNS安装与配置
- JS deep and shallow copy
- EU officially released the data act, Ukraine was attacked by DDoS again, kitchen appliance giant Meiya was attacked, internal data leakage network security weekly
- Pointer and array & pointer and const & struct and Const
- remote: Support for password authentication was removed on August 13, 2021
- Main stages of garbage collection in ZGC
- #113 Path Sum II
- Introduction to the characteristics of balancer decentralized exchange market capitalization robot
猜你喜欢

ASCII code comparison table

新品发布丨竣达智能综合环境监测终端

In the spring recruitment of 2022, the test engineer will have a full set of interview strategies to thoroughly understand all the technical stacks (all dry goods)

leetcode:207. 课程表

What's a good gift for the goddess Festival? Gift recommendation for the goddess Festival on March 8

一款高颜值的MySQL管理工具

leetcode:207. Class Schedule Card

RestTemplate的@LoadBalance注解

一级指针&二级指针知识点梳理

测试基础之:单元测试
随机推荐
Solution of good number pairs
RestTemplate的@LoadBalance注解
机器学习资料汇总
USB机械键盘改蓝牙键盘
Simplest ALV template
递归调用知识点-包含例题求解二分查找、青蛙跳台阶、逆序输出、阶乘、斐波那契、汉诺塔。
Select sort
CUDA out of memory
Distributed cloud service developer'allegro Xile technology 'received an angel round financing of US $3million
#141 Linked List Cycle
#113 Path Sum II
Insert sort
A blog written clearly by vit
ASCII 码对照表
插入排序
China hydraulic press market trend report, technical innovation and market forecast
Data visualization diagram microblog forwarding diagram
在同花顺开户安全么,买股票怎么网上开户
The required books for software testers (with e-books) recommended by senior Ali have benefited me a lot
Data visualization - Calendar chart