]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify gcResetGState
authorAustin Clements <austin@google.com>
Wed, 25 Feb 2015 03:29:33 +0000 (22:29 -0500)
committerAustin Clements <austin@google.com>
Wed, 25 Feb 2015 15:48:57 +0000 (15:48 +0000)
commit07b73ce146f7958c6e9e9b8778690971ac160cd8
tree4f197c5b3207322aa333be82b5172d95c1678edc
parentb3d791c7bb89acc5bc77c4ba55f173a4d2c732c4
runtime: simplify gcResetGState

Since allglock is held in this function, there's no point to
tip-toeing around allgs.  Just use a for-range loop.

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