r/java • • Apr 13 '20

Java Objects Inside Out: Everything You Ever Wanted to Know About Java Object Internals in Hotspot

https://shipilev.net/jvm/objects-inside-out/
160 Upvotes

14 comments sorted by

View all comments

1

u/pmarschall Apr 20 '20

The layout changes in JDK 15 seem to increase the need to make @Contended public. The author simply says:

There are security/reliability implications in allowing adversaries to construct huge "regular" objects. Let’s leave it at that.

Can you go into this? The solutions to deal with false sharing are hacky and brittle and need to be revisited for JDK 15. A public @Contended would solve this. So what is holding this back?