RFE: Add compressed oops to VM info string

Christian Thalinger christian.thalinger at oracle.com
Thu Nov 10 03:38:05 PST 2011

On Nov 10, 2011, at 12:19 PM, David Holmes wrote:

> Hi Kris,
> On 10/11/2011 5:54 PM, Krystal Mok wrote:
>> Hi all,
>> I'd like to propose to add "compressed oops" to the VM info string, so
>> that people using "java -version" can get a better understanding of the
>> ergonomics of the VM.
> You could make the same argument for showing what GC was selected

...and that would be very helpful.  -- Chris

> , and probably a number of other settings. Why should compressed oops be special here? You can use -XX:+PrintFlagsFinal to see all the settings.
> David
> -----
>> I've posted a patch [1], against hsx20's master. The files modified are
>> still pretty much the same on hotspot-main's master.
>> With the patch applied, "java -version" may show:
>> OpenJDK 64-Bit Server VM (build 20.0-b11-internal, mixed mode,
>> compressed oops)
>> and what used to work still works:
>> OpenJDK Client VM (build 20.0-b11-internal, mixed mode, sharing)
>> P.S. Alibaba (Taobao)'s OCA is submitted already, still waiting for
>> approval from Oracle.
>> Regards,
>> Kris Mok
>> Software Engineer, Taobao (http://www.taobao.com)
>> [1]: https://gist.github.com/1354299

More information about the hotspot-dev mailing list