New candidate JEP: 519: Compact Object Headers

David Alayachew davidalayachew at gmail.com
Tue May 13 23:06:29 UTC 2025


Silly question -- what happens if you use this feature, but end up with
more classes than can fit in the class' object header? I like to think of
myself as aware of my project's performance metrics, but the number of
classes loaded is not a detail I track.

Related question -- is it possible to know ahead of time EXACTLY how many
classes are going to be loaded? I know for everyday projects, the answer is
yes. But I was thinking more like Proxy classes (like how Spring does it),
since (to my understanding) those are generated on the fly and aren't known
at compile time.

On Tue, May 13, 2025, 1:27 PM Mark Reinhold <mark.reinhold at oracle.com>
wrote:

> https://openjdk.org/jeps/519
>
>   Summary: Change compact object headers from an experimental feature to
>   a product feature.
>
> - Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-dev/attachments/20250513/6119af3f/attachment-0001.htm>


More information about the jdk-dev mailing list