diff options
| author | Bryan C. Mills <bcmills@google.com> | 2017-05-13 00:01:50 -0400 |
|---|---|---|
| committer | Bryan Mills <bcmills@google.com> | 2017-08-17 18:14:16 +0000 |
| commit | d5b0ec858b3760e93722c13958dea767ab8da34b (patch) | |
| tree | 65f54ece8b1df00ed5d299f47ef1e7839a40ee34 /src/cmd/compile/internal/ssa/stackalloc.go | |
| parent | 6711fa70cecce261662c20613cc63eec0c21a16a (diff) | |
| download | go-d5b0ec858b3760e93722c13958dea767ab8da34b.tar.xz | |
{net,os/user,plugin}: eliminate unnecessary C round-trips
We're making two extra round-trips to C to malloc and free strings
that originate in Go and don't escape. Skip those round-trips by
allocating null-terminated slices in Go memory instead.
Change-Id: I9e4c5ad999a7924ba50b82293c52073ec75518be
Reviewed-on: https://go-review.googlesource.com/56530
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/stackalloc.go')
0 files changed, 0 insertions, 0 deletions
