1. Runtime data areas During the execution of Java programs, the Memory managed by the Java VIRTUAL machine is divided into several data areas. Each...
Strong references As long as there are strong references, garbage collector will never collect for example: Object obj = new Object(); Help garbage object collection...
Class loaders are used to load classes into Java virtual machines. Since JDK1.2, the loading process uses the parent delegate mechanism, which ensures the security...
The HotSpot VIRTUAL machine object memory layout, compression pointer, using joL to view and calculate the object memory usage, object access location method!
A back-end programmer has to deal with Linux servers all the time, so this article documents some ideas about looking at CPU, process/thread, and JVM...
Synchronized performance was a concern prior to JDK 1.6, but since 1.6, JVM teams have done a lot of optimization for synchronized, making it comparable...
The memory area managed by the Java Virtual machine is divided into program counters, virtual machine stacks, local method stacks, heaps, and method areas.
The Java memory model is a compliant memory model specification, shielding a variety of hardware and operating system access differences, to ensure that the Java...
【 Small house press 】 This article mainly introduces the background of the problems generated by the model, the problems solved, the processing ideas, the...
Volatile volatile is a lightweight synchronization mechanism provided by the JVM to ensure visibility, not guarantee atomicity to prohibit instruction reordering. JMM Memory Model Overview...
Runtime data area: Two parts, thread private and shared data area. Thread private includes local method area, virtual machine stack, program counter; The Java heap:...
This article introduces the run-time data area in this diagram, also known as the memory model. For Java programmers, memory leaks and memory spills are...