]> Cypherpunks repositories - gostls13.git/commit
runtime: move checknocurrentwbuf() from scanblock to drainworkbuf
authorAustin Clements <austin@google.com>
Thu, 12 Feb 2015 20:00:54 +0000 (15:00 -0500)
committerAustin Clements <austin@google.com>
Fri, 13 Feb 2015 15:34:08 +0000 (15:34 +0000)
commitc2de2f87f08c6ebdae095a84dd8c2c8c5ecfc671
tree7f356d4618a6639525f6556a856a988cc192727c
parentc4ee44b7b979f7c985fdc09e4a88c6d37957297c
runtime: move checknocurrentwbuf() from scanblock to drainworkbuf

Previously, scanblock called checknocurrentwbuf() after
drainworkbuf().  Move this call into drainworkbuf so that every return
path from drainworkbuf calls checknocurrentwbuf().  This is equivalent
to the previous code because scanblock was the only caller of
drainworkbuf.

Change-Id: I96ef2168c8aa169bfc4d368f296342fa0fbeafb4
Reviewed-on: https://go-review.googlesource.com/4780
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go