]> Cypherpunks repositories - gostls13.git/commit
runtime: move condition into wakep
authorAustin Clements <austin@google.com>
Wed, 29 Apr 2020 00:54:31 +0000 (20:54 -0400)
committerAustin Clements <austin@google.com>
Thu, 30 Apr 2020 00:42:35 +0000 (00:42 +0000)
commit4e00b4c366f06036509201d3bf19ee2c8fd767c8
tree1d5b4dbcd897708364d7b31dceafdec5a87f7ceb
parentdf2862cf54858ba5b1ada7d2ca99e57f3c13dd23
runtime: move condition into wakep

All five calls to wakep are protected by the same check of nmidle and
nmspinning. Move this check into wakep.

Change-Id: I2094eec211ce551e462e87614578f37f1896ba38
Reviewed-on: https://go-review.googlesource.com/c/go/+/230757
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/proc.go