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

关于第4章GC部分的一些疑问 #9

Open
marjune163 opened this issue Aug 22, 2020 · 0 comments
Open

关于第4章GC部分的一些疑问 #9

marjune163 opened this issue Aug 22, 2020 · 0 comments

Comments

@marjune163
Copy link

marjune163 commented Aug 22, 2020

  1. GC在标记mspan中被引用的对象后产生的gcmarkBits,会作为新的allocBits,那么是否也应该同时更新allocCount
  2. GC在三色标记对象引用时,对象的引用应该是指向被分配的地址吧(也就是arena中的page中的某个位置)?但gcmarkBits是在mspan中,Go是如何通过对象地址反向找出对应mspan的?
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