auto commit
This commit is contained in:
parent
55c954c484
commit
0d98ecfbac
16
notes/CyC 学习交流群 问题汇总.md
Normal file
16
notes/CyC 学习交流群 问题汇总.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!-- GFM-TOC -->
|
||||
* [0. 进程内存空间中,堆和栈的区别](#0-进程内存空间中,堆和栈的区别)
|
||||
<!-- GFM-TOC -->
|
||||
|
||||
|
||||
# 0. 进程内存空间中,堆和栈的区别
|
||||
|
||||
> C++
|
||||
|
||||
堆:动态、malloc()、new、链式分配、向上生长;栈:函数调用、编译器分配回收、向下生长。
|
||||
|
||||
https://www.cnblogs.com/sunziying/p/6510030.html
|
||||
|
||||
By @CyC
|
||||
|
||||
---
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
# 一、运行时数据区域
|
||||
|
||||
<div align="center"> <img src="../pics//c9ad2bf4-5580-4018-bce4-1b9a71804d9c.png" width="450"/> </div><br>
|
||||
<div align="center"> <img src="../pics//85370d54-40d1-4912-bcbe-37a2481c861d.png" width="450"/> </div><br>
|
||||
|
||||
## 程序计数器
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
|||
|
||||
每个 Java 方法在执行的同时会创建一个栈帧用于存储局部变量表、操作数栈、常量池引用等信息。从方法调用直至执行完成的过程,就对应着一个栈帧在 Java 虚拟机栈中入栈和出栈的过程。
|
||||
|
||||
<div align="center"> <img src="../pics//926c7438-c5e1-4b94-840a-dcb24ff1dafe.png" width="500"/> </div><br>
|
||||
<div align="center"> <img src="../pics//28ab96b4-82ea-4d99-99fb-b320f60d0a58.png" width="500"/> </div><br>
|
||||
|
||||
可以通过 -Xss 这个虚拟机参数来指定每个线程的 Java 虚拟机栈内存大小:
|
||||
|
||||
|
|
BIN
pics/28ab96b4-82ea-4d99-99fb-b320f60d0a58.png
Normal file
BIN
pics/28ab96b4-82ea-4d99-99fb-b320f60d0a58.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
pics/85370d54-40d1-4912-bcbe-37a2481c861d.png
Normal file
BIN
pics/85370d54-40d1-4912-bcbe-37a2481c861d.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
Loading…
Reference in New Issue
Block a user