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:
asmhatre
2026-11-24 06:46:39 +05:30
co-authored by Claude Sonnet 5.5
parent f7b6c1efca
commit 876ae1bb5c
36 changed files with 948 additions and 1 deletions
@@ -0,0 +1,21 @@
# The baseline: a FLAT live set (one list of 1 KB byte arrays, no pointers inside), JDK 25, -Xms512m -Xmx512m, 150 MB live, 8 s, one run each
## -XX:+UseSerialGC
requests : 10735539 (52378 MB allocated)
ticker max stall: 8.6 ms; wakeups >10 ms: 0; >50 ms: 0
## -XX:+UseParallelGC
requests : 13025302 (63552 MB allocated)
ticker max stall: 5.0 ms; wakeups >10 ms: 0; >50 ms: 0
## -XX:+UseG1GC
requests : 8873404 (43294 MB allocated)
ticker max stall: 7.2 ms; wakeups >10 ms: 0; >50 ms: 0
## -XX:+UseZGC
requests : 13262536 (64709 MB allocated)
ticker max stall: 6.3 ms; wakeups >10 ms: 0; >50 ms: 0
## -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
requests : 9827770 (47951 MB allocated)
ticker max stall: 5.3 ms; wakeups >10 ms: 0; >50 ms: 0