Knowledge Shop: Light to build knowledge, continuously updated each time less knowledge, the reading is not tired. Does not account for too much time, kept the knowledge to awaken your deep memories.
Java Memory Model (JMM)
JVM memory model is the JVM memory partition
Java memory model is a virtual machine specification
1. Jvm memory according to the operational state and when the divided memory specifications
- Java memory area
2.1 ** ** thread-safe
2.1.1 Program Counter
2.1.2 virtual machine stack
2.1.3 Native Method
2.2 thread safe
2.2.1 Method zone
2.2.2 heap contained in the following figure
2.2.3 heap memory division
to sum up:
- Calculator program is not the only area OOM
- Gc heap is the main place of
- Thread-safe zones: virtual machine stack, local method, the program counter
- Non-thread-safe zones: zone method, heap
- Heap: divided into Eden, From Survivor, To Survivor
Heap: district ratio: 8: 1: 1
Study notes or paper finishing or reproduced by the zshipu.com, if infringement please contact, it will change.