-
Notifications
You must be signed in to change notification settings - Fork 45.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
标记-清除法中被标记的对象 #82
Labels
enhancement
New feature or request or suggestion
Comments
嗯嗯 这段描述是我参考《深入理解Java虚拟机》第2版的 我再看看 |
我看的时候也对这个问题产生了困惑,如果是标记可回收对象,标记整理算法不就不太合理了吗,标记的可回收对象,然而移动的是存活对象,这样的话就要绕一个弯了。因此《深入理解Java虚拟机》第2版那本书可能表述有误。 |
《深入理解Java虚拟机 》这本书有很多地方是有误的,学习者建议结合知乎上R大的回答来学习 |
为什么这么说?
懒癌正患者 <notifications@github.com> 于2019年7月19日周五 上午7:25写道:
… 《深入理解Java虚拟机 》这本书有很多地方是有误的,学习者建议结合知乎上R大的回答来学习
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#82?email_source=notifications&email_token=AMSZB5JH6RUX2XY2XVKJDFTQAD3XTA5CNFSM4GKEIFGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2KDOAQ#issuecomment-513029890>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMSZB5OEUZ6AM54CIL6VOM3QAD3XTANCNFSM4GKEIFGA>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在 搞定JVM垃圾回收就是这么简单 中 标记-清除法的描述为:
我在网上搜索了一些资料,有的写的是 标记可回收对象,有的写的是 标记不可回收对象。
之后找到一个issues可供参考:
crossoverJie/JCSprout#131
参考维基百科里的说法:
The first stage is the mark stage which does a tree traversal of the entire 'root set' and marks each object that is pointed to by a root as being 'in-use'.
被标记的应为 在用(不可回收)对象
https://en.wikipedia.org/wiki/Tracing_garbage_collection#Na.C3.AFve_mark-and-sweep
在CMS收集器这部分内容中描述有前后矛盾的地方:
标记阶段对不可回收对象标记,在清除时对标记区域清扫。不就是把不可回收对象清除掉了?
The text was updated successfully, but these errors were encountered: