]> Cypherpunks repositories - gostls13.git/commit
runtime: prevent sysmon from polling network excessivly
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 19 Jul 2013 13:45:34 +0000 (17:45 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 19 Jul 2013 13:45:34 +0000 (17:45 +0400)
commit68572644576be5f1f7121428755e7d8af5b7044c
tree2a28301b59f4b7cd990a8f0407d13263ea7e35d9
parent9bfb69187fc76cce47032111f4cbe055a28704ae
runtime: prevent sysmon from polling network excessivly
If the network is not polled for 10ms, sysmon starts polling network
on every iteration (every 20us) until another thread blocks in netpoll.
Fixes #5922.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/11569043
src/pkg/runtime/proc.c