JVM -XX:+StringCache argument?

后端 未结 6 1458
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-15 20:19

I was recently reading about all the JVM arguments available in JRE 6 [Java VM Options] and saw this :

-XX:+StringCache : Enables caching of commonly

6条回答
  •  醉梦人生
    2020-12-15 20:46

    As of JDK 8.0, this option has been removed. It is unclear to me what, if anything, can be used as a replacement.

    http://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html

     -XX:+UseStringCache
    
        Enables caching of commonly allocated strings. This option was removed from JDK 8 
        with no replacement.
    

提交回复
热议问题