Bin's Tech Cabin
Jun 15, 2024 · Fundamentals
When Does ZGC Actually Clear SoftReferences? Inside the JVM Reference Policy
This article explains how ZGC in OpenJDK 17 decides whether to reclaim SoftReference objects, detailing the unconditional clearing scenarios, the policies governing SoftReference lifetimes, and how the JVM quantifies memory pressure using heap size and the -XX:SoftRefLRUPolicyMSPerMB flag.
Garbage CollectionJVMReference Policy
0 likes · 15 min read
