Thread stacks with the virtual machine

Virtual machine stack: the program counter, native method stacks belong to the JVM thread private memory area. VM stack and thread life cycle is the same, is created in the JVM runtime thread, the method creates a stack frame in the process of implementation. Mainly used to store the local variable table, the operation information stack, dynamic link, the method exports. The stack frame is generally referred to as the width of the memory size, and the number of stack frames is called a virtual machine stack depth. VM stack size can be configured via parameters -xss. Therefore, in the virtual machine stack of the same size, smaller if the memory occupied by the local variable table or the like, the greater the depth of the stack of the virtual machine.

The internal structure of the virtual machine stack

 

Guess you like

Origin www.cnblogs.com/myitnews/p/11420748.html