admin管理员组文章数量:1303450
There is a feature in HotSpot called CDS, or Class Data Sharing. But in some articles (by Oracle team themselves, btw!). They mention CDS being an abbreviation of Class Data Storage and Cached Data Storage. So now we have three of them:
- Class Data Sharing
- Class Data Storage
- Cached Data Storage
So, my questions are:
- Am I correct, that they are basically the same thing?
- If they are not, can you provide some links pointing to what exactly each piece is?
- If they are indeed the same thing - why the hell there are 3 different names to reference the same thing?
There is a feature in HotSpot called CDS, or Class Data Sharing. But in some articles (by Oracle team themselves, btw!). They mention CDS being an abbreviation of Class Data Storage and Cached Data Storage. So now we have three of them:
- Class Data Sharing
- Class Data Storage
- Cached Data Storage
So, my questions are:
- Am I correct, that they are basically the same thing?
- If they are not, can you provide some links pointing to what exactly each piece is?
- If they are indeed the same thing - why the hell there are 3 different names to reference the same thing?
1 Answer
Reset to default 0From this sources:
- https://bugs.openjdk./browse/JDK-8315737
- https://openjdk./projects/leyden/slides/leyden-heidinga-devnexus-2024-03.pdf
They represent almost (!) the same feature in HotSpot. The key points are:
Class Data Sharing
==Class Data Storage
. They are indeed the different names for the same feature. The first one is used more frequently.Cached Data Storage
is an evolution of theClass Data Storage/Sharing
. The idea is that it extends the functionality ofClass Data Storage/Sharing
, in the sense that nowCached Data Storage
also stores shared information, not only related to Java classes, the direct quote from an issue:
As a matter of history, CDS has been built into the HotSpot VM [since JDK 5] in 2004. At first its expanded name was “Class Data Sharing”, which is reflected in options like
-Xshare:…
. Over the years it has expanded its capabilities beyond the storage of shareable class data, so the preferred alternative expansion for CDS is now “Cache Data Storage”. Either expansion refers to the same technology.
P.S: Here you can see the JEP 483, where Class Data Storage/Sharing
evolved into Cached Data Storage
.
本文标签: jvmWhy CDS abbreviation has many different interpretations in HotSpotStack Overflow
版权声明:本文标题:jvm - Why CDS abbreviation has many different interpretations in HotSpot? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741721481a2394413.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论