• 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
proc1.go 87.2 KB