Add java21-features module: runnable demos and captured output for the ankurm.com java21-features article

This commit is contained in:
2026-10-20 17:13:59 +00:00
parent 5a076c826f
commit c3cc57f482
33 changed files with 354 additions and 0 deletions
@@ -0,0 +1,9 @@
$ javac src/GcNamesDemo.java && java -XX:+UseZGC GcNamesDemo (21.0.12.1)
gc bean : ZGC Cycles
gc bean : ZGC Pauses
$ javac src/GcNamesDemo.java && java -XX:+UseZGC -XX:+ZGenerational GcNamesDemo (21.0.12.1)
gc bean : ZGC Minor Cycles
gc bean : ZGC Minor Pauses
gc bean : ZGC Major Cycles
gc bean : ZGC Major Pauses