这篇文章中的
https://www.baeldung.com/native-memory-tracking-in-jvm
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
堆也是内存的一部分。
在Java中,内存分为两种,一种是栈内存,另一种就是堆内存。