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

Merge pull request #841 from jianxin-yuan/master

新增 "可作为GC Roots 的对象"
This commit is contained in:
SnailClimb 2020-07-07 15:44:30 +08:00 committed by GitHub
commit bb523cd60a
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 再谈引用