Skip to content

Commit 6b7ec27

Browse files
committed
更新垃圾回收
1 parent a990d6c commit 6b7ec27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MD/GarbageCollection.md

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222

2323
如图:Object1,2,3,4 都是存活的对象,而 Object5、6、7都是可回收对象。
2424

25+
可以用作 `GC-Roots` 的对象有:
26+
27+
- 方法区中静态变量所引用的对象。
28+
- 虚拟机栈中所引用的对象。
29+
2530
## 垃圾回收算法
2631

2732
### 分代回收

0 commit comments

Comments
 (0)