cmd/gc: add way to specify 'noescape' for extern funcs
A new comment directive //go:noescape instructs the compiler that the following external (no body) func declaration should be treated as if none of its arguments escape to the heap. Fixes #4099. R=golang-dev, dave, minux.ma, daniel.morsing, remyoudompheng, adg, agl, iant CC=golang-dev https://golang.org/cl/7289048
Showing
This diff is collapsed.
test/fixedbugs/issue4099.go
0 → 100644
Please register or sign in to comment