Idea for a #golang static analysis tool:
foo := make([]byte, 10) // stackalloc: require
w.Write(foo)
$ stackalloc check
main.go:10: foo escapes to heap
Basically you just run escape analysis and flag any annotated variables that escape.
0 replies
1 retweet
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.