]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify the control flow in sweepone
authorAustin Clements <austin@google.com>
Wed, 19 Sep 2018 20:42:13 +0000 (16:42 -0400)
committerAustin Clements <austin@google.com>
Thu, 27 Sep 2018 18:04:50 +0000 (18:04 +0000)
commit06afc8b152bc01e1b4f5dce074bae531dd29a9b9
treec727d1fe2254110506cb32bd16e5ea9b5c20526b
parenta6df1cece7f6b62a1e1b09f9027692ac0d5411a1
runtime: simplify the control flow in sweepone

Ending a loop with a break is confusing. Rewrite the loop so the
default behavior is to loop and then do the "post-loop" work outside
of the loop.

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