More efficient, less racy code. Fixes #4014. R=ken2, ken CC=golang-dev https://golang.org/cl/7275047
Attach a file by drag & drop or click to upload