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

defer结构体 #18

Open
wj29 opened this issue Aug 25, 2020 · 1 comment
Open

defer结构体 #18

wj29 opened this issue Aug 25, 2020 · 1 comment

Comments

@wj29
Copy link

wj29 commented Aug 25, 2020

文章中 https://github.com/cch123/golang-notes/blob/master/defer.md 的 fn newdefer 中使用systemstack生成_defer结构体,后面为什么会出现获取不到d的情况,此时在p的deferpool中应该有值

@cch123
Copy link
Owner

cch123 commented Aug 28, 2020

@wujiang1994 ,那个 if 不一定会进去的吧,比如刚 GC 完,是不是就进不去了

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

2 participants