JVM内存模型
2021-01-14 15:59:09 0 举报
JVM内存模型
作者其他创作
大纲/内容
c=30
java Math.class
1/3
Math对象
a=1
minor gc
full gc
FILO
栈(线程)
年轻代
运行时数据区(内存模型)
1230
动态链接
方法出口
本地方法区
compute()-栈帧
main()-栈帧
修改
操作数栈
方法区(元空间)常量+静态变量+类信息
线程共享
s01/10
类装载子系统
b=2
Survivor
JVM虚拟机
javac Math.java
老年代(2/3)
this
public int compute(){ int a=1; int b=2; int c=(a+b)*10; return c; } public static void main(String[] args){ Math math = new Math(); math.compute(); System.out.println(\"test\"); }
堆
Eden(8/10)
用来恢复被挂起的程序
程序计数器
s11/10
STW(stop the world)
math
字节码执行引擎
局部变量表
0 条评论
下一页