Skip to content

Commit 3554d1a

Browse files
authored
Update JVM.md
1 parent 2a432e0 commit 3554d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JVM.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ JDK1.4中新加入的NIO(New Input/Output)类,引入了一种基于通道
129129

130130
**如何避免频繁GC**
131131

132-
不要频繁的new 对象;不要显示的调研system.gc();不要使用Long Integer 尽量使用基本类型;少用静态变量 不会回收;可以使用null 进行回收
132+
不要频繁的new 对象;不要显式的调研system.gc();不要使用Long Integer 尽量使用基本类型;少用静态变量 不会回收;可以使用null 进行回收
133133

134134
**导致Full GC几种情况**
135135

@@ -389,4 +389,4 @@ G1收集器在后台维护了一个优先列表,每次根据允许的收集时
389389
- 软引用:有用但不是必须的对象,在发生内存溢出之前会被回收。
390390
- 弱引用:有用但不是必须的对象,在下一次GC时会被回收。
391391
- 虚引用(幽灵引用/幻影引用):无法通过虚引用获得对象,用 PhantomReference 实现虚引用,虚引用的用途是在 gc 时返回一个通知。
392-
392+

0 commit comments

Comments
 (0)