From 56294f4adfb880e41c6a4111241d795191d5dc0b Mon Sep 17 00:00:00 2001
From: Rob Pike
-TODO
-cmd/go, go/build: support .m files (CL 60590044)
-cmd/go: add -exec to 'go run' and 'go test' (CL 68580043)
-cmd/go: cover -atomic for -race (CL 76370043)
+The
+The test coverage support of the
+Finally, the go command now supports packages that import Objective-C
+files (suffixed Changes to the go command
cmd/go
command has several new
+features.
+The go run
and
+go test
subcommands
+support a new -exec
option to specify an alternate
+way to run the resulting binary.
+Its immediate purpose is to support NaCl.
+go test
+subcommand now automatically sets the coverage mode to -atomic
+when the race detector is enabled, to eliminate false reports about unsafe
+access to coverage counters.
+.m
) through cgo.
Miscellany
@@ -140,10 +155,10 @@ Once a shell and awk script in the main repository, it is now a Go program in th
Documentation is here.
For the few of us that build Go distributions, the tool misc/dist
has been
moved and renamed; it now lives in misc/makerelease
, still in the main repository.
-
+A previous bug in crypto/tls
+made it possible to skip verfication in TLS inadvertently.
+In Go 1.3, the bug is fixed: one must specify either ServerName or
+InsecureSkipVerify, and if ServerName is specified it is enforced.
+This may break existing code that incorrectly depended on insecure
+behavior.
+
There is an important new type added to the standard library: sync.Pool
.
It provides an efficient mechanism for implementing certain types of caches whose memory
@@ -207,8 +231,15 @@ can be reclaimed automatically by the system.
-TODO: crypto/tls: ServerName or InsecureSkipVerify (CL 67010043)
-possible breaking change
+The testing
package's benchmarking helper,
+B
, now has a
+RunParallel
method
+to make it easier to run benchmarks that exercise multiple CPUs.
+
+Updating: The crypto/tls fix may break existing code, but such +code was erroneous and should be updated.
testing
package now
diagnoses tests that call panic(nil)
, which are almost always erroneous.
--
2.50.0