Add gc-basics: Java garbage collection explained and measured on JDK 25, 27, 28 EA
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b44MquEzmd9QMkZCd7
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
f7b6c1efca
commit
876ae1bb5c
@@ -0,0 +1,8 @@
|
||||
# Reachability observed with weak references (JDK 25)
|
||||
A (local variable) alive
|
||||
B (static field) alive
|
||||
C (child of A) alive
|
||||
D (no references) collected
|
||||
X (cycle with Y, no root) collected
|
||||
Y (cycle with X, no root) collected
|
||||
A and C are still used here: A -> C
|
||||
Reference in New Issue
Block a user