Class ZgcGenerationalModeExamples

java.lang.Object
net.jrodolfo.java_evolution.java23.zgc_generational_mode.ZgcGenerationalModeExamples

public class ZgcGenerationalModeExamples extends Object
Demonstrates the Java 23 ZGC generational-mode runtime boundary.

Java 23 made generational mode the default for ZGC. This example launches child JVMs to verify the executable part that is portable on ZGC-capable builds: ZGC can be selected, -XX:+PrintFlagsFinal reports UseZGC = true, and GC initialization logs mention young and old generation workers.

The example does not benchmark garbage collection. Throughput, pause time, heap footprint, and CPU behavior require real workloads and measurement.