]> Cypherpunks repositories - gostls13.git/commitdiff
doc: in Go 1.8 notes, mention lack of RWMutex in contention profile
authorRuss Cox <rsc@golang.org>
Wed, 4 Jan 2017 18:37:33 +0000 (13:37 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 4 Jan 2017 19:01:32 +0000 (19:01 +0000)
For #18496.

Change-Id: I50ced7c9f0fe5d9c627eef1f59a7f73be742e04c
Reviewed-on: https://go-review.googlesource.com/34831
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.8.html

index 83556521fa3c05a801a6e5c704e2cc2f43b011d1..de92e92355411a35ef4b859a92c33d9551297d77 100644 (file)
@@ -631,6 +631,13 @@ now implements the new
   <a href="/pkg/runtime/#SetMutexProfileFraction"><code>SetMutexProfileFraction</code></a>.
 </p>
 
+<p>
+  A known limitation for Go 1.8 is that the profile only reports contention for
+  <a href="/pkg/sync/#Mutex"><code>sync.Mutex</code></a>,
+  not 
+  <a href="/pkg/sync/#RWMutex"><code>sync.RWMutex</code></a>.
+</p>
+
 <h3 id="minor_library_changes">Minor changes to the library</h3>
 
 <p>