Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up不同常量池在 JDK6~8 中存放的位置 #613
Comments
|
有的文章把 class 常量池归入 运行时常量池,如 https://segmentfault.com/q/1010000018015110
有些文章并没有区分不同类型的常量池,笼统地得出结论,如 https://blog.csdn.net/qq_42629806/article/details/99842776
|
|
赞!老哥。加深了我对常量池的理解。 |


根据 https://www.javatt.com/p/47643
他们再 JDK6~8 中分别位于不同的地方
请问这三类常量池在 JDK6~8 中分别如何对应到 JVM 的内存模型中?