runtime: do not do futile netpolls
There is no sense in trying to netpoll while there is already a thread blocked in netpoll. And in most cases there must be a thread blocked in netpoll, because the first otherwise idle thread does blocking netpoll. On some program I see that netpoll called from findrunnable consumes 3% of time. Change-Id: I0af1a73d637bffd9770ea50cb9278839716e8816 Reviewed-on: https://go-review.googlesource.com/4553Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
Showing
Please
register
or
sign in
to comment