Commit 4ec51894 authored by Ian Lance Taylor's avatar Ian Lance Taylor

runtime: force testing calls of netpoll to run on system stack

Fixes #35053

Change-Id: I31853d434610880044c169e0c1e9732f97ff1bdb
Reviewed-on: https://go-review.googlesource.com/c/go/+/202444
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarDavid du Colombier <0intro@gmail.com>
parent 57ad6ef1
......@@ -35,7 +35,6 @@ var Atoi = atoi
var Atoi32 = atoi32
var Nanotime = nanotime
var Netpoll = netpoll
var NetpollBreak = netpollBreak
var Usleep = usleep
......@@ -54,6 +53,12 @@ func LFStackPop(head *uint64) *LFNode {
return (*LFNode)(unsafe.Pointer((*lfstack)(head).pop()))
}
func Netpoll(delta int64) {
systemstack(func() {
netpoll(delta)
})
}
func GCMask(x interface{}) (ret []byte) {
systemstack(func() {
ret = getgcmask(x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment