JVM workflow

Simply put: the .java file is edited into a .class file through the compiler, and the .class file is loaded into the memory through the class loader.

The following focuses on the memory model of the JVM:

It is the stack, heap, and method area we often say.

Java heap

The only purpose of this memory area is to store object instances, almost all objects are allocated memory here 

Native method stack  

Very similar to the role played by the VM stack, the VM stack executes Java method (bytecode) services, and the Native side 

The law stack executes Native method services

java virtual machine stack 

The memory model of Java method execution. When each method is executed, a stack frame is created to save the local 

Variable table, operand stack, dynamic link, method export information, etc. The process of a method call is a 

The process of a stack frame from the VM stack to the stack

 

 

Guess you like

Origin blog.csdn.net/qq_36428821/article/details/112547704