]> Cypherpunks repositories - gostls13.git/commit
runtime: remove drainallwbufs argument to drainworkbuf
authorAustin Clements <austin@google.com>
Thu, 12 Feb 2015 20:30:08 +0000 (15:30 -0500)
committerAustin Clements <austin@google.com>
Fri, 13 Feb 2015 15:34:49 +0000 (15:34 +0000)
commit60a16ea36799710b449b69594506c471c76d02a2
treed582e441edcb5ed32ff9a3713502528ef2d2daf0
parent15c9a2ef4e2ba914c330eca8e86c6b6166986d27
runtime: remove drainallwbufs argument to drainworkbuf

All calls to drainworkbuf now pass true for this argument, so remove
the argument and update the documentation to reflect the simplified
interface.

At a higher level, there are no longer any situations where we drain
"one wbuf" (though drainworkbuf didn't guarantee this anyway).  We
either drain everything, or we drain a specific number of objects.

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