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,20 @@
|
||||
# ZGC: the non-generational mode is gone, and what 28 adds
|
||||
|
||||
## JDK 25: ask for the old mode
|
||||
$ java -XX:+UseZGC -XX:-ZGenerational -version
|
||||
OpenJDK 64-Bit Server VM warning: Ignoring option ZGenerational; support was removed in 24.0
|
||||
openjdk version "25.0.5.1" 2026-11-17 LTS
|
||||
|
||||
## JDK 25: plain ZGC
|
||||
collector MXBeans : ZGC Minor Cycles | ZGC Minor Pauses | ZGC Major Cycles | ZGC Major Pauses
|
||||
|
||||
## ZGC flags present on 28 early access but not on 27 (diff of -XX:+PrintFlagsFinal -XX:+UseZGC, names only)
|
||||
only on 28:
|
||||
ZAdaptiveHeapSizing
|
||||
ZGCIntensity
|
||||
ZMemoryHeating
|
||||
only on 27:
|
||||
|
||||
## its default on 28
|
||||
size_t SoftMaxHeapSize = 1449551462 {manageable} {ergonomic}
|
||||
bool ZAdaptiveHeapSizing = false {product} {default}
|
||||
Reference in New Issue
Block a user