以下说法是错误的,G1的分区里不存在一个自由分区的类型,属于严重的理解错误,unuse在Oracle文档中的原意是未使用,被错误的翻译成自由分区。
错误示例:
G1的分区类型大致可以分为四类:
正确的示例:
正确的说法:看官网的解释。
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% 或更大的对象。它们存储为一组连续的区域。最后一种区域将是堆的未使用区域。