From 797478290b5a06ed4d7bcd3e655a9b5c8eef5eb5 Mon Sep 17 00:00:00 2001 From: Dragon <1826692270@qq.com> Date: Fri, 19 Feb 2021 10:39:48 +0800 Subject: [PATCH] =?UTF-8?q?jvm=E7=AC=AC=E5=8D=81=E4=BA=8C=E7=AB=A0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Java/JVM/JVM系列-第12章-垃圾回收器.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/Java/JVM/JVM系列-第12章-垃圾回收器.md b/docs/Java/JVM/JVM系列-第12章-垃圾回收器.md index 8ee517d..2e68209 100644 --- a/docs/Java/JVM/JVM系列-第12章-垃圾回收器.md +++ b/docs/Java/JVM/JVM系列-第12章-垃圾回收器.md @@ -10,6 +10,7 @@ keywords: JVM,虚拟机。 description: JVM系列-第12章-垃圾回收器。 cover: 'https://cdn.jsdelivr.net/gh/youthlql/lql_img/JVM/logo.png' top_img: 'https://cdn.jsdelivr.net/gh/youthlql/lql_img/blog/top_img.jpg' +abbrlink: 7706d61d date: 2020-11-19 18:33:24 --- @@ -303,7 +304,7 @@ Serial 回收器:串行回收 -PaeNew 回收器:并行回收 +ParNew 回收器:并行回收 ----------------- @@ -643,8 +644,17 @@ G1中提供了三种垃圾回收模式:YoungGC、Mixed GC和Full GC,在不 4. 一个Region有可能属于Eden,Survivor或者Old/Tenured内存区域。但是一个Region只可能属于一个角色。图中的E表示该Region属于Eden内存区域,S表示属于Survivor内存区域,O表示属于Old内存区域。图中空白的表示未使用的内存空间。 -5. G1垃圾收集器还增加了一种新的内存区域,叫做Humongous内存区域,如图中的H块。主要用于存储大对象,如果超过1.5个Region,就放到H。 +5. G1垃圾收集器还增加了一种新的内存区域,叫做Humongous内存区域,如图中的H块。主要用于存储大对象,如果超过0.5个Region,就放到H。 + + + > 纠错:尚硅谷视频里这里写的是超过1.5个region。根据[官方文档](https://www.oracle.com/technetwork/tutorials/tutorials-1876574.html): **The G1 Garbage Collector Step by Step** + > + > 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,幸存者和旧时代区域。 此外,还有第四种类型的物体被称为巨大区域。 这些区域旨在容纳标准区域大小的50%或更大的对象。 它们存储为一组连续区域。 最后,最后一种区域类型是堆的未使用区域。