From: Keith Randall
Date: Thu, 1 Dec 2016 16:37:48 +0000 (-0800)
Subject: doc: mention concurrent map write/iterate detector
X-Git-Tag: go1.8beta2~80
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ac9962fb236569d25e9cc7f2859ac5a23eea1534;p=gostls13.git
doc: mention concurrent map write/iterate detector
Mention that the best-effort race detector on maps
was upgraded to detect write/iterate races.
Fixes #18137
Change-Id: Ib6e0adde47e965126771ea712386031a2a55eba3
Reviewed-on: https://go-review.googlesource.com/33768
Reviewed-by: Brad Fitzpatrick
---
diff --git a/doc/go1.8.html b/doc/go1.8.html
index 49ff5c0278..0481887228 100644
--- a/doc/go1.8.html
+++ b/doc/go1.8.html
@@ -442,6 +442,26 @@ version of gccgo.
documentation and its example for more details.
+Concurrent Map Misuse
+
+
+In Go 1.6, the runtime
+added lightweight,
+best-effort detection of concurrent misuse of maps. This release
+improves that detector with support for detecting programs that
+concurrently write to and iterate over a map.
+
+
+As always, if one goroutine is writing to a map, no other goroutine should be
+reading (which includes iterating) or writing the map concurrently.
+If the runtime detects this condition, it prints a diagnosis and crashes the program.
+The best way to find out more about the problem is to run the program
+under the
+race detector,
+which will more reliably identify the race
+and give more detail.
+
+
MemStats Documentation