The Java Virtual machine memory management diagram looks like this:
1. Thread sharing area, which is shared by all threads, has several components in the thread sharing area:
1. Method area: Run the constant-time pool, the class information that has been loaded by the virtual machine, constants, static variables, the instant compiler compiled code and other data
2.java Heap: Storage Object instance
2. Thread exclusive zone, is each thread has its own independent virtual machine stack, local method stack, program counter.
1. Virtual machine stack: The data required to store the method runtime becomes the stack frame.
2. Local method Stack: the native that is called by the JVM is the local method service.
3. Program counter: Records the line number of the byte code to which the current thread is executing.
JVM notes 2-java Virtual machine Memory Management Introduction