• Dmitry Vyukov's avatar
    runtime: do not do futile netpolls · f47e581e
    Dmitry Vyukov authored
    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: 's avatarKeith Randall <khr@golang.org>
    Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
    f47e581e
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...