1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

新增 "可作为GC Roots 的对象"

This commit is contained in:
jianxin.yuan 2020-06-30 22:54:38 +08:00 committed by GitHub
parent a9ed8ec820
commit c3df908b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,6 +238,11 @@ public class ReferenceCountingGc {
![可达性分析算法 ](./pictures/jvm垃圾回收/72762049.png)
可作为GC Roots的对象包括下面几种:
* 虚拟机栈(栈帧中的本地变量表)中引用的对象
* 本地方法栈(Native方法)中引用的对象
* 方法区中类静态属性引用的对象
* 方法区中常量引用的对象
### 2.3 再谈引用