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
runtime: make all waitReasons distinct? #24362
Comments
I don't think distinct ints are useful. That's a perfectly sensible encoding, but I don't ever want to show the ints to a user. Do you have the re-used reasons handy? |
$ grep -R -I "gopark" . | awk -F '"' '{print $2}' | grep -v "^$" | sort | uniq -c | sort -n -r | grep -v "\s*1 "
3 wait for GC cycle
2 semacquire
2 GC sweep wait |
Leaving this for @aclements to close. |
Probably these should actually get factored into a single function. It's three copies of very similar code.
These could be distinct. One is for acquiring semaphores, the other is for
These really are the same thing, but the control flow makes it a little tricky to bring them together, so this is fine. |
Change https://golang.org/cl/102605 mentions this issue: |
Change https://golang.org/cl/102606 mentions this issue: |
Updates #24362. Change-Id: Ided1ab31792f05d9d7a86f17c1bcbd9e9b80052c Reviewed-on: https://go-review.googlesource.com/102606 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Migrated from the discussion in CL 99078:
Should we do this? If so, distinct ints only or also distinct strings?
The fix is pretty easy regardless. cc @aclements for opinions.
The text was updated successfully, but these errors were encountered: