]> Cypherpunks repositories - gostls13.git/commit
undo CL 45930043 / c22889382a17
authorRuss Cox <rsc@golang.org>
Fri, 17 Jan 2014 21:58:14 +0000 (16:58 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 17 Jan 2014 21:58:14 +0000 (16:58 -0500)
commit5c9585953f5bfb9b783d9b47eb17cea890664b76
tree0801ecdbe887d2f8a0b8aaaea8c57d742501f29c
parent451667a67f5b7765bb4d1d5e94e12ea1b18cfe23
undo CL 45930043 / c22889382a17

The compiler change is an ugly hack.
We can do better.

««« original CL description
syscall: mark arguments to Syscall as noescape
Heap arguments to "async" syscalls will break when/if we have moving GC anyway.
With this change is must not break until moving GC, because a user must
reference the object in Go to preserve liveness. Otherwise the code is broken already.
Reduces number of leaked params from 125 to 36 on linux.

R=golang-codereviews, mikioh.mikioh, bradfitz
CC=cshapiro, golang-codereviews, khr, rsc
https://golang.org/cl/45930043
»»»

R=golang-codereviews, r
CC=bradfitz, dvyukov, golang-codereviews
https://golang.org/cl/53870043
src/cmd/gc/esc.c
src/pkg/syscall/dll_windows.go
src/pkg/syscall/syscall_linux_386.go
src/pkg/syscall/syscall_plan9.go
src/pkg/syscall/syscall_unix.go