mirror of
https://github.com/golang/go
synced 2024-11-12 10:30:23 -07:00
1b6807bb06
During a cgo call, the stack can be copied. This copy invalidates the pointer that cgo has into the return value area. To fix this problem, pass the address of the location containing the stack top value (which is in the G struct). For cgo functions which return values, read the stktop before and after the cgo call to compute the adjustment necessary to write the return value. Fixes #8771 LGTM=iant, rsc R=iant, rsc, khr CC=golang-codereviews https://golang.org/cl/144130043 |
||
---|---|---|
.. | ||
android | ||
arm | ||
cgo | ||
chrome/gophertool | ||
dashboard/codereview | ||
git | ||
linkcheck | ||
makerelease | ||
nacl | ||
swig | ||
benchcmp | ||
editors | ||
pprof |