关于JVM的字符串常量池 ,这篇文章是不是说错了?-灵析社区

雁过留痕

这篇文章中的 [https://www.baeldung.com/native-memory-tracking-in-jvm](https://link.segmentfault.com/?enc=OW88sSGimdhX2pVAfBovgg%3D%3D.E8PwMeb0oThdBMaWYXTLLK1U4vZ5MFhLZTwM4ZTrntwwbyu510wZMDzCgG%2FYhBpj6%2FucvtCDsQS%2F9noZ4sc91g%3D%3D) 2.5. Symbols JVM stores interned strings in a special native fixed-sized hashtable called the String Table, also known as the String Pool. We can configure the table size (i.e. the number of buckets) via the -XX:StringTableSize tuning flag. 是不是说错了,字符串常量池不是使用堆实现吗?怎么是本地内存了 d

阅读量:29

点赞量:0

问AI
云卿山手
堆 也是内存的一部分。 在Java中,内存分为两种,一种是栈内存,另一种就是堆内存。