]> Cypherpunks repositories - gostls13.git/commit
runtime: panic when idling a P with runnable Gs
authorAustin Clements <austin@google.com>
Fri, 24 Apr 2015 20:37:31 +0000 (16:37 -0400)
committerAustin Clements <austin@google.com>
Mon, 27 Apr 2015 12:49:49 +0000 (12:49 +0000)
commit2a46f55b359909ab0710f7952747811dfae07a50
treefbe54f412c5ab5ab15c55dfd8f1f246ad5f7c12b
parentfd5540e7e5d2149c723b2a636ceed32c1d534ff5
runtime: panic when idling a P with runnable Gs

This adds a check that we never put a P on the idle list when it has
work on its local run queue.

Change-Id: Ifcfab750de60c335148a7f513d4eef17be03b6a7
Reviewed-on: https://go-review.googlesource.com/9324
Reviewed-by: Rick Hudson <rlh@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/runtime/proc1.go