]> Cypherpunks repositories - gostls13.git/commit
sync: enable profiling of RWMutex
authorLorenz Bauer <lmb@cloudflare.com>
Wed, 10 Jan 2018 10:50:19 +0000 (10:50 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Feb 2018 15:38:42 +0000 (15:38 +0000)
commit88ba64582703cea0d66a098730215554537572de
treecb10a0295ead15fbcef0a615f5a9ab8e7b6109af
parent8cb4327ea3fb9584164fccf3fb4d76c4e567d76d
sync: enable profiling of RWMutex

Include reader / writer interactions of RWMutex in the mutex profile.
Writer contention is already included in the profile, since a plain Mutex
is used to control exclusion.

Fixes #18496

Change-Id: Ib0dc1ffa0fd5e6d964a6f7764d7f09556eb63f00
Reviewed-on: https://go-review.googlesource.com/87095
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Peter Weinberger <pjw@google.com>
src/sync/rwmutex.go