Skip to content
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

gc_cn.md 中 为什么 a1 和 a2 在本轮 GC 中存活了? #50

Open
philo-veritas opened this issue Jul 14, 2022 · 0 comments
Open

Comments

@philo-veritas
Copy link

finalizer 原文中提到 ”在 step1 中, unreachable 中定义了 del 的对象的对应的 del 都会被调用, 并且所有的 unreachable 中的对象都会在当前这轮垃圾回收中存活“

a1 和 a2 最终不可达(final_unreachable),不是应该在本轮垃圾回收中被回收了吗?为什么会移到 old 中?

@philo-veritas philo-veritas changed the title gc_cn.md 中 为什么 a1 和 阿 gc_cn.md 中 为什么 a1 和 a2 在本轮 GC 中存活了? Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant