]> Cypherpunks repositories - gostls13.git/commit
runtime: do not share underlying envs/argv array
authorDavid Crawshaw <crawshaw@golang.org>
Tue, 3 Mar 2015 18:55:22 +0000 (13:55 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 9 Mar 2015 17:25:23 +0000 (17:25 +0000)
commit402f71a839e823c2ebad0b6524b17e07c03a6376
treefd9f4a86a7f1d9b816bebc38e7a3bd4dec244024
parentac080fa6d85ae848089b55144de0ce9dfc484d64
runtime: do not share underlying envs/argv array

Removes a potential data race between os.Setenv and runtime.GOROOT,
along with a bug where os.Setenv would only sometimes change the
value of runtime.GOROOT.

Change-Id: I7d2a905115c667ea6e73f349f3784a1d3e8f810d
Reviewed-on: https://go-review.googlesource.com/6611
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/env_test.go [new file with mode: 0644]
src/runtime/export_test.go
src/runtime/runtime.go