From 75ce44aa84ebf0f48dd73b98f2bf2d6077473ed1 Mon Sep 17 00:00:00 2001 From: Roman Kennke Date: Wed, 25 Jun 2025 08:09:03 +0000 Subject: [PATCH] 8355319: Update Manpage for Compact Object Headers (Production) Reviewed-by: coleenp, dholmes, phh --- src/java.base/share/man/java.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/java.base/share/man/java.md b/src/java.base/share/man/java.md index a25ef4100e1..3831fc64f88 100644 --- a/src/java.base/share/man/java.md +++ b/src/java.base/share/man/java.md @@ -1515,6 +1515,15 @@ These `java` options control the runtime behavior of the Java HotSpot VM. This option is similar to `-Xss`. +`-XX:+UseCompactObjectHeaders` +: Enables compact object headers. By default, this option is disabled. + Enabling this option reduces memory footprint in the Java heap by + 4 bytes per object (on average) and often improves performance. + + The feature remains disabled by default while it continues to be evaluated. + In a future release it is expected to be enabled by default, and + eventually will be the only mode of operation. + `-XX:-UseCompressedOops` : Disables the use of compressed pointers. By default, this option is enabled, and compressed pointers are used. This will automatically limit