TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How Garbage Collection differs in the three big JVMs

82 点作者 kumarshantanu大约 14 年前

2 条评论

deadc0de大约 14 年前
This describes the state of GC like it was 10 years ago (and in a few places incorrectly), at least in Hotspot. Shameless promotion: try out the new G1 (-XX:+UseG1GC), better to use the latest EA JDK7 build.
评论 #2538765 未加载
评论 #2538331 未加载
评论 #2539655 未加载
earl大约 14 年前
A fascinating jvm they missed is azul. They claim they can handle 300+GB heaps with pauses &#60; 10 ms by radically changing how gc works. Skim this: <a href="http://www.artima.com/lejava/articles/azul_pauseless_gc.html" rel="nofollow">http://www.artima.com/lejava/articles/azul_pauseless_gc.html</a> Essentially it continually compacts the heap, but simply doesn't remap all pointers to an object. They then tool the OS vm system / TLB with memory barriers and fix up pointers on access instead of fixing up pointers on relocation/compaction.<p>Also, this is a pretty interesting talk about what exactly goes on in a modern jvm. Worth listening to <a href="http://jeremymanson.blogspot.com/2011/04/cliff-click-in-jvm-does-what.html" rel="nofollow">http://jeremymanson.blogspot.com/2011/04/cliff-click-in-jvm-...</a> The speaker works for azul systems.<p>Regarding the article, I wonder if it's worthwhile or if there is any research into recycling objects or something like c++ placement new? I guess it doesn't really make sense because in java objects are mostly just a collection of pointers, whereas in C++ objects can themselves be fairly large.