Skip to content

Commit 2f71fa4

Browse files
committed
更新
1 parent fa881d7 commit 2f71fa4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MD/GarbageCollection.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
这种算法虽然简单高效,但是却无法解决**循环引用**的问题,因此 Java 虚拟机并没有采用这种算法。
1616

1717
### 可达性分析算法
18+
主流的语言其实都是采用可达性分析算法:
1819

1920
可达性算法是通过一个称为 `GC Roots` 的对象向下搜索,整个搜索路径就称为引用链,当一个对象到 `GC Roots` 没有任何引用链 `JVM` 就认为该对象是可以被回收的。
2021

0 commit comments

Comments
 (0)