梳理6--堆、栈、方法区

1. 堆 栈

https://www.cnblogs.com/qianjinyan/p/10352749.html

 

https://www.cnblogs.com/whgw/archive/2011/09/29/2194997.html

栈: 引用、基础数据类型     

线程私有

 

 

堆:

线程共有

 

 

 

 

 

2. 方法区

线程共有

 

 

 

 

 

posted @ 2021-01-17 13:40  Master_Sun  阅读(64)  评论(0编辑  收藏  举报