我听说 JDK 11 引入了一个名为 ZGC 的新垃圾收集器策略,但我找不到它代表什么。字母“Z”是什么意思?它有什么特定的含义吗?
最佳答案
这只是一个名字,没有更深的含义。
在命名 ZGC 时,他们受到/想要向 Oracle 的 Bonwick 文件系统致敬 ZFS .
Bonwick 在他的博客中解释了 ZFS 中“Z”的含义。他试图想出一个好名字,最后决定用“FS”来命名。查看 AFS-ZFS 发现所有都被使用了,但 ZFS 没有那么多。
从(2):
So in the end, I picked ZFS for the simplest of reasons: it sounds cool. It doesn't come with any baggage, like YFS (Why FS? Ha ha!). And you can even say it in hex (2f5).
接下来他想想出一些“Z”可以代表的东西,可能的候选人是“零”或“Zetta”(但他必须解释 Zetta 的意思)然后(2):
So we finally decided to unpimp the name back to ZFS, which doesn't stand for anything. It's just a pseudo-acronym that vaguely suggests a way to store files that gets you a lot of points in Scrabble.
由于 ZFS 中的“Z”不代表任何东西,因此现在 ZGC 中的“Z”也代表任何东西。
资料来源:
附加信息:常见问题解答还告诉我们,您可以自由地将其发音为“zed gee see”或“zee gee see”。
关于java - JDK11 中的 ZGC 名称中的字母 "Z"到底指的是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61853689/