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

escape analysis for reference types #16

Closed
kalexmills opened this issue Nov 22, 2020 · 0 comments · Fixed by #27
Closed

escape analysis for reference types #16

kalexmills opened this issue Nov 22, 2020 · 0 comments · Fixed by #27
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kalexmills
Copy link
Contributor

kalexmills commented Nov 22, 2020

The current static analysis that is being performed does not account for the more insidious examples. To get them all, something rather similar to Rust's lifetime checker needs to be written to perform escape analysis of references to range loop variables.

That is a rather more involved task than hacking on the procedure from go vet, which is all that I have done so far.

Related: golang/go
Related: dominikh/go-tools
Related: kyoh86/exportloopref
Related: kyoh86/looppointer

@kalexmills kalexmills added enhancement New feature or request help wanted Extra attention is needed labels Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant