1
0
mirror of https://github.com/golang/go synced 2024-10-04 02:21:21 -06:00
go/src
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
..
archive build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
bufio build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
builtin build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
bytes cmd/go: fix bytes and net the right way 2014-09-24 19:18:01 -04:00
cmd cgo: adjust return value location to account for stack copies. 2014-09-25 07:59:01 -07:00
compress build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
container build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
crypto build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
database/sql database/sql: Close per-tx prepared statements when the associated tx ends 2014-09-22 09:19:27 -04:00
debug debug/dwarf: correct name for clang-generated complex type 2014-09-24 16:53:47 -04:00
encoding encoding/gob: speedup encoding 2014-09-18 10:13:15 -07:00
errors build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
expvar build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
flag build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
fmt fmt: document and fix the handling of precision for strings and byte slices 2014-09-24 14:33:30 -07:00
go go/doc: document rationale for recent change 2014-09-18 16:53:35 -07:00
hash build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
html build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
image image/gif: don't let the per-frame transparent index modify the global 2014-09-22 14:29:45 +10:00
index/suffixarray build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
internal/syscall build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
io io: clarify Reader returning 0, nil 2014-09-16 10:01:28 -04:00
lib9 lib9, cmd/ld: fixes for cross-linking on a Windows host 2014-09-18 17:27:26 -07:00
libbio
liblink cmd/cc, cmd/ld, runtime: disallow conservative data/bss objects 2014-09-24 16:55:26 -04:00
log build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
math build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
mime build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
net net/http: update ProxyFromEnvironment docs for HTTPS_PROXY addition 2014-09-24 17:39:00 -07:00
os os: fix Args setup on Windows 2014-09-24 18:50:54 -04:00
path path/filepath: document that Glob ignores i/o errors 2014-09-18 21:50:22 -04:00
reflect reflect: adjust Value.String to give correct answer for methods 2014-09-18 21:19:18 -04:00
regexp build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
runtime cgo: adjust return value location to account for stack copies. 2014-09-25 07:59:01 -07:00
sort build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
strconv strconv: fix documentation for CanBackquote. 2014-09-09 11:45:36 -07:00
strings bytes, strings: document that FieldsFunc f must not be stateful 2014-09-18 19:40:31 -04:00
sync runtime: more NOPTR 2014-09-24 19:04:06 -04:00
syscall cmd/cc, cmd/ld, runtime: disallow conservative data/bss objects 2014-09-24 16:55:26 -04:00
testing cmd/go, testing: add TestMain support 2014-09-19 13:51:06 -04:00
text text/template: type-check chained node as argument 2014-09-22 17:48:13 -07:00
time build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
unicode build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
unsafe build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
all.bash build: make nacl pass 2014-05-20 12:10:19 -04:00
all.bat
all.rc
androidtest.bash androidtest.bash: adjustment for move from src/pkg to src 2014-09-08 10:07:26 -04:00
clean.bash
clean.bat
clean.rc
make.bash build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
make.bat build: fix windows make.bat 2014-09-07 07:31:53 -04:00
Make.dist
make.rc build: adjustments for move from src/pkg to src 2014-09-08 00:06:45 -04:00
nacltest.bash build: more adjustments for move from src/pkg to src 2014-09-08 00:22:40 -04:00
race.bash race.bash: support freebsd 2014-06-24 15:47:22 -07:00
race.bat
run.bash build: fix elf builds 2014-09-24 14:45:11 -07:00
run.bat runtime: keep g->syscallsp consistent after cgo->Go callbacks 2014-09-24 13:20:25 -04:00
run.rc build: be verbose when running tests on Plan 9 2014-07-20 13:14:53 +03:00
sudo.bash