#11: More String Deduplication
On average, ~25% of heaps are char arrays for strings and roughly half of them are duplicates. 😳 Since 2017, G1 deduplicates them, which saves ~10% heap size.
Other GCs followed suit:
#JDK17: Shenandoah
#JDK18: ZGC, Serial GC, and Parallel GC
#jdk17
#jdk18