go/misc
Keith Randall 1b6807bb06 cgo: adjust return value location to account for stack copies.
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
2014-09-25 07:59:01 -07:00
..
android build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
arm arm: add gdb support to android launcher script 2010-07-30 10:35:07 +03:00
cgo cgo: adjust return value location to account for stack copies. 2014-09-25 07:59:01 -07:00
chrome/gophertool gophertool: fix links 2012-10-22 01:05:21 +08:00
dashboard/codereview misc/dashboard/app, misc/dashboard/builder: delete from main repo; part of move to go.tools 2013-08-01 13:27:27 +10:00
git misc/git: add gofmt git pre-commit hook 2012-11-15 19:58:49 +01:00
linkcheck misc/linkcheck: better redirect handling, use meaningful exit code 2013-10-25 17:31:02 +03:00
makerelease build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
nacl build: more adjustments for move from src/pkg to src 2014-09-08 00:22:40 -04:00
swig cmd/go: add any .c/.cc files to the SWIG shared library 2013-10-09 10:35:46 -07:00
benchcmp benchcmp: leave a forwarding script 2014-03-31 16:39:41 -04:00
editors misc: delete editor and shell support 2014-07-01 09:21:25 -07:00
pprof misc/pprof: support web profiles on windows/MinGW 2014-07-23 10:35:04 -07:00