Garbage Collection / Runtime
4 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 1.1 GChistorical
Garbage collection automatically reclaims heap memory, reducing the need for manual deallocation. These notes continue with the collection process and related problems.
- 1.2 STWhistorical
Stop-the-world pauses suspend application threads during garbage collection. These notes examine the memory interactions between application and GC threads and the reasons for pausing.
- 1.3 Memory Leakhistorical
Memory that cannot be reclaimed may keep growing until an out-of-memory failure. These notes examine leaks starting with memory still referenced by root objects.
- 2.1 GC Tuninghistorical
GC tuning balances CPU overhead, pause duration, and memory usage. These notes begin with setting goals and organize evaluation and adjustment steps.