r/java • • Apr 15 '26

JEP 534: Compact Object Headers by Default

https://openjdk.org/jeps/534
123 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/Joram2 Apr 18 '26

Can't JDK 25 do both ZGC with Compact Object Headers? AFAIK, that should work fine now. The most recent Compact Object Header JEPs don't mention any limitations regarding ZGC: https://openjdk.org/jeps/519

This JEP will just enable Compact Object Headers by default.

1

u/p_a_harvey Apr 19 '26

Ah, I must've missed that update. I only remembered the very early versions couldn't be used with ZGC. That's great news then. I might as well turn it on for our Java 25 deployments.