In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you there are several types of run-time data areas in JVM, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
When JVM runs a java program, it divides the memory it manages into the runtime data areas shown in the figure. Roughly divided into two types of memory space:
Thread data shared memory areas that are created and destroyed as JVM processes start and stop
An area of thread private data memory that is created and destroyed with thread creation and harness.
Note: there is a description of the method area above. In fact, the method area is standard and always exists. The so-called permanent generation or metadata space is only the implementation of the method area. After the JDK1.8 version, the permanent generation in the hotspot method area has been replaced by the metadata space, and the heap memory space is no longer used and moved directly to local memory.
Personally, I think the reasons for removing the permanent generation from the heap are:
1. There is an official explanation in http://openjdk.java.net/jeps/122. It is recommended that the metadata of the class be put into local memory, and the constant pool and declaration variables should be placed in the heap. Because the recovery effect of the class is not obvious, putting it in the heap will increase the number of GC.
2. Compatible with other virtual machines, JRockit and J9 virtual machines have never been implemented forever.
That's all of the article "there are several types of runtime data areas in JVM". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.