关于G1回收器的区域分类的正确说明:自由分区说明

以下说法是错误的,G1的分区里不存在一个自由分区的类型,属于严重的理解错误,unuse在Oracle文档中的原意是未使用,被错误的翻译成自由分区。

错误示例:

G1的分区类型大致可以分为四类:

1.自由分区

2.新生代分区

3.大对象分区

4.老生代分区

正确的示例:

正确的说法:看官网的解释。

The colors in the picture shows which region is associated with which role. Live objects are evacuated (i.e., copied or moved) from one region to another. Regions are designed to be collected in parallel with or without stopping all other application threads.

As shown regions can be allocated into Eden, survivor, and old generation regions. In addition, there is a fourth type of object known as Humongous regions. These regions are designed to hold objects that are 50% the size of a standard region or larger. They are stored as a set of contiguous regions. Finally the last type of regions would be the unused areas of the heap.

图中的颜色表示哪个区域与哪个角色相关联。活动对象从一个区域转移(即复制或移动)到另一个区域。区域被设计为在停止或不停止所有其他应用程序线程的情况下并行收集。

如图所示,区域可以被分配为 Eden、survivor 和 old generation 区域。此外,还有第四种类型的物体,称为巨大区域。这些区域旨在容纳大小为标准区域 50% 或更大的对象。它们存储为一组连续的区域。最后一种区域将是堆的未使用区域。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值