Skip to content

Commit c3df908

Browse files
authored
新增 "可作为GC Roots 的对象"
1 parent a9ed8ec commit c3df908

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/java/jvm/JVM垃圾回收.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ public class ReferenceCountingGc {
238238
239239
![可达性分析算法 ](./pictures/jvm垃圾回收/72762049.png)
240240
241+
可作为GC Roots的对象包括下面几种:
242+
* 虚拟机栈(栈帧中的本地变量表)中引用的对象
243+
* 本地方法栈(Native方法)中引用的对象
244+
* 方法区中类静态属性引用的对象
245+
* 方法区中常量引用的对象
241246
242247
### 2.3 再谈引用
243248

0 commit comments

Comments
 (0)