]> Cypherpunks repositories - gostls13.git/commit
runtime: fix deadlock in network poller
authorDmitriy Vyukov <dvyukov@google.com>
Sun, 7 Apr 2013 05:27:54 +0000 (22:27 -0700)
committerDmitriy Vyukov <dvyukov@google.com>
Sun, 7 Apr 2013 05:27:54 +0000 (22:27 -0700)
commit0b5d55984fc939fdc35128342aa7cb34b0798de6
treee307a710f51095a6c1d32ccecd374b38727e89a0
parent6732ad94c763be17dd5ae86f2dd51f1046026712
runtime: fix deadlock in network poller
The invariant is that there must be at least one running P or a thread polling network.
It was broken.
Fixes #5216.

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/8459043
src/pkg/runtime/proc.c