Skip to content

Commit 20cdb62

Browse files
committed
doc: in Go 1.8 notes, mention lack of RWMutex in contention profile
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>
1 parent f64b7d3 commit 20cdb62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/go1.8.html

+7
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,13 @@ <h3 id="mutex_prof">Mutex Contention Profiling</h3>
631631
<a href="/pkg/runtime/#SetMutexProfileFraction"><code>SetMutexProfileFraction</code></a>.
632632
</p>
633633

634+
<p>
635+
A known limitation for Go 1.8 is that the profile only reports contention for
636+
<a href="/pkg/sync/#Mutex"><code>sync.Mutex</code></a>,
637+
not
638+
<a href="/pkg/sync/#RWMutex"><code>sync.RWMutex</code></a>.
639+
</p>
640+
634641
<h3 id="minor_library_changes">Minor changes to the library</h3>
635642

636643
<p>

0 commit comments

Comments
 (0)