关于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% 或更大的對象。它們存儲為一組連續的區域。最后一種區域將是堆的未使用區域。
總結
以上是生活随笔為你收集整理的关于G1回收器的区域分类的正确说明:自由分区说明的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【PHP】创蓝253云通讯paas平台短
- 下一篇: kali渗透综合靶机(十)--Raven