From 81fb7e1e20785dbfb39ff5f221b42d3acd5576d0 Mon Sep 17 00:00:00 2001 From: gongmw Date: Sun, 6 May 2018 21:31:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?jvm=20=E4=BF=AE=E6=94=B9=E6=B0=B8=E4=B9=85?= =?UTF-8?q?=E4=BB=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 0 -> 6148 bytes notes/Java 虚拟机.md | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..cc4f54787a6b0fe5a6801b3bfbaf55f45ce33ac8 GIT binary patch literal 6148 zcmeHK%Sr=55Ukb}0$y_TIKSW@3?Y7jKOiO^gy0I%`=0zRKh5d~$g&u6@uJnxQ!_nX zGfW+}w*lDZeSZtA0j%hb`0!zAzVE)Ui;6f}oN?SAcZbJuJaBoQIrj=L81aTD%=iOd z@r>Pf@Vpb1B?Y8_6p#W^Knk2vpo;YB`c#tkq<|FomkRjzq0t?C;glGk4i3=*5C?|C zIFDX}*gQb&g;OFUG)pQmsa7q9C7tnBdA)E-Ogb!X<~enB_WFNE|Dpe%leCfoQs7T1V8ix)yWx|nwk{s$wYJe8=$`XQcjG)L9HJZ(qa1VL f<@hF&GOziZ`@L{V3_9aMC+cUwb&*Md-&WuYW|0}( literal 0 HcmV?d00001 diff --git a/notes/Java 虚拟机.md b/notes/Java 虚拟机.md index 4b72b865..123df47d 100644 --- a/notes/Java 虚拟机.md +++ b/notes/Java 虚拟机.md @@ -90,7 +90,7 @@ java -Xms=1M -Xmx=2M HackTheJava 和 Java 堆一样不需要连续的内存,并且可以动态扩展,动态扩展失败一样会抛出 OutOfMemoryError 异常。 -对这块区域进行垃圾回收的主要目标是对常量池的回收和对类的卸载,但是一般比较难实现,HotSpot 虚拟机把它当成永久代来进行垃圾回收。 +对这块区域进行垃圾回收的主要目标是对常量池的回收和对类的卸载,但是一般比较难实现。JDK1.7之前,HotSpot 虚拟机把它当成永久代来进行垃圾回收,JDK8之后,取消了永久代,用metaspace(元数据)区替代。 ## 运行时常量池 From 8c115712af6229566df838646339885219ce3d7b Mon Sep 17 00:00:00 2001 From: gongmw Date: Sun, 6 May 2018 21:34:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?jvm=20=E4=BF=AE=E6=94=B9=E6=B0=B8=E4=B9=85?= =?UTF-8?q?=E4=BB=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index cc4f54787a6b0fe5a6801b3bfbaf55f45ce33ac8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%Sr=55Ukb}0$y_TIKSW@3?Y7jKOiO^gy0I%`=0zRKh5d~$g&u6@uJnxQ!_nX zGfW+}w*lDZeSZtA0j%hb`0!zAzVE)Ui;6f}oN?SAcZbJuJaBoQIrj=L81aTD%=iOd z@r>Pf@Vpb1B?Y8_6p#W^Knk2vpo;YB`c#tkq<|FomkRjzq0t?C;glGk4i3=*5C?|C zIFDX}*gQb&g;OFUG)pQmsa7q9C7tnBdA)E-Ogb!X<~enB_WFNE|Dpe%leCfoQs7T1V8ix)yWx|nwk{s$wYJe8=$`XQcjG)L9HJZ(qa1VL f<@hF&GOziZ`@L{V3_9aMC+cUwb&*Md-&WuYW|0}(