mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: initialize netpoll in TestNetpollBreak
Netpoll must be always be initialized when TestNetpollBreak is launched. However, when it is run in standalone, it won't be the case, so it must be forced. Updates: #27707 Change-Id: I28147f3834f3d6aca982c6a298feadc09b55f66e Reviewed-on: https://go-review.googlesource.com/c/go/+/204058 Run-TryBot: Clément Chigot <clement.chigot%atos.net@gtempaccount.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
1a058cd04b
commit
6453337494
2 changed files with 3 additions and 1 deletions
|
|
@ -40,6 +40,8 @@ var Usleep = usleep
|
|||
|
||||
var PhysHugePageSize = physHugePageSize
|
||||
|
||||
var NetpollGenericInit = netpollGenericInit
|
||||
|
||||
type LFNode struct {
|
||||
Next uint64
|
||||
Pushcnt uintptr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue