(comments)
原始链接: https://news.ycombinator.com/item?id=44059953
JEP 519 promotes Compact Object Headers in OpenJDK from experimental to a product feature, aiming for memory footprint reduction and performance improvements. Previous experimental versions (JEP 450) have been tested extensively at Oracle and Amazon, demonstrating positive performance results, including a 10% improvement in JSON parsing. Despite the promising results, Compact Object Headers won't be enabled by default. This cautious approach is typical in the JVM world due to concerns about potential compatibility issues. Enabling it still requires specific flags. One commenter inquired about its impact on GraalVM Native Image, but another clarified it primarily affects the HotSpot JVM, and Native Image likely already uses smaller headers. Making it non-experimental simply means it is ready for product use, not that it will become the default behavior.
> They have been tested at Oracle by running the full JDK test suite. They have also been tested at Amazon by hundreds of services in production, most of them using backports of the feature to JDK 21 and JDK 17.
One of the underappreciated perks of working on platform teams in large (and very large in the case of Amazon) companies is that you've got a playground to see and quantify the impact of your performance work that few others have.
[1]: https://openjdk.org/jeps/450
reply