Support for Compressed Strings being Dropped in HotSpot JVM?

后端 未结 5 485
情深已故
情深已故 2020-11-29 19:35

On this Oracle page Java HotSpot VM Options, it lists -XX:+UseCompressedStrings as being available and on by default. However in Java 6 update 29, it is off by

5条回答
  •  没有蜡笔的小新
    2020-11-29 20:16

    In OpenJDK 7 (1.7.0_147-icedtea, Ubuntu 11.10), the JVM simply fails with an

    Unrecognized VM option 'UseCompressedStrings'

    when JAVA_OPTS (or command line) contains -XX:+UseCompressedStrings.

    It seems Oracle really removed the option.

提交回复
热议问题