Skip to content- Sources: Inside Java, HN discussion
- Summary: JEP 534 makes Compact Object Headers the default, shrinking every object header from 12 bytes to 8, and JEP 519 cites 22 percent lower heap usage and 8 percent lower CPU in one SPECjbb2015 configuration. JEP 523 makes G1 the default in small containers and single-processor environments that previously got Serial GC, which changes pause times, CPU use, and memory overhead there. The Object Monitor Table is also enabled by default, its opt-out flag was deprecated on introduction because the legacy implementation is to be removed, and Inside Java states that enabling it exposed a 30 percent regression in a synchronization-heavy benchmark, which JDK-8382311 then addressed by reducing the number of fast-locking spin attempts before a monitor inflates under contention.
- Why it matters: Three defaults change under applications that are otherwise unmodified, the header layout change can break tooling or agents that assume the legacy layout, and one of the three has a deprecated opt-out, so each default is worth measuring separately.