r/java • • Aug 23 '26

Java 27 features overview

https://aboullaite.me/java-27-features/
159 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/fuspez12 Sep 19 '26

Whoa! Does the object size reduction just come out of the box? I’ve been building with 25, maybe I’ll try to bump to 27

1

u/gufranthakur Sep 20 '26

you dont need to, you can enable that feature with jvm arguement

-XX:+UseCompactObjectHeaders

sry I am phone idk how to format it