]> Cypherpunks repositories - gostls13.git/commit
runtime: remove redundant locking in mcache.refill
authorAustin Clements <austin@google.com>
Sat, 22 Sep 2018 19:59:01 +0000 (15:59 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Sep 2018 18:39:43 +0000 (18:39 +0000)
commit2d23ece135076698ea4724b02f07d71d1f2145fb
treea6e97815d7844e2f2da3c3735f0524fc44d768e5
parenteac99c44667a748f8b00f38c5f44beb41e1b4503
runtime: remove redundant locking in mcache.refill

mcache.refill acquires g.m.locks, which is pointless because the
caller itself absolutely must have done so already to prevent
ownership of mcache from shifting.

Also, mcache.refill's documentation is generally a bit out-of-date, so
this cleans this up.

Change-Id: Idc8de666fcaf3c3d96006bd23a8f307539587d6c
Reviewed-on: https://go-review.googlesource.com/138195
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mcache.go