运行时数据区
官网
2.5. Run-Time Data Areas
The Java Virtual Machine defines various run-time data areas that are used during execution of a program. Some of these data areas are created on Java Virtual Machine start-up and are destroyed only when the Java Virtual Machine exits. Other data areas are per thread. Per-thread data areas are created when a thread is created and destroyed when the thread exits.
1 | 1.data areas 有生命周期的 jvm启动的时候被创建 jvm退出的时候被销毁 |
1.The pc Register 程序计数器
1 | The pc Register 程序计数器 |
1 | 什么是字节码? |
1 | 字节码 |
2) Java Virtual Machine Stacks
1 | public class Hello { |
1 | Each Java Virtual Machine thread has a private Java Virtual Machine stack, created at the same time as the thread |
3.Heap 堆 ****重点
1 | The Java Virtual Machine has a heap that is shared among all Java Virtual Machine threads |
4.Method Area/Metaspace 方法区
1 | The Java Virtual Machine has a method area that is shared among all Java Virtual Machine threads. |
5.Native Method Stacks本地方法栈
1 | Native Method Stacks |
1 | 还有一个区:是干嘛的呢? |
总结
1 | public static void main(String[] args) { |
1 | public static void main(String[] args) { |
1 | /** |
1 | 比较特殊: |