[go-nuts] how dose netpollblock be awoken while sysmon sleep?

2017-04-19 Thread sydnash
I have a test code like this: func main() { tcpAddress, err := net.ResolveTCPAddr("tcp", ":") if err != nil { fmt.Println(err) } listener, err := net.ListenTCP("tcp", tcpAddress) c, e := listener.AcceptTCP() if e != nil { fmt.Println(e) } t := make([]byte, 0, 1000) c.Read(t) } when th

[go-nuts] Re: how dose netpollblock be awoken while sysmon sleep?

2017-04-19 Thread sydnash
I got it. it because there is a blocking netpool in runtime.findrunable() function. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googl

Re: [go-nuts] how dose netpollblock been awaked while sysmon slepp?

2017-04-20 Thread sydnash
thank you, i got it. how did you debug the go runtime? use print or gcc, or some other tools? Thank you for tolerate my grammatical mistakes again. 在 2017年4月20日星期四 UTC+8上午11:59:06,Ian Lance Taylor写道: > > On Wed, Apr 19, 2017 at 7:42 PM, 代君 > > wrote: > > > > i have a test code like this: > > f

[go-nuts] sigaction implementation on darwin

2021-11-08 Thread sydnash
Where is the sigaction implementation on macos with purego?I only found the cgo implementation in runtime/sys_darwin.go. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send a

[go-nuts] abort assembly code profile

2022-08-26 Thread sydnash
I have some golang code like this: ```golang type C [2]int //go:noinline func t1(a, b C) C { var ret C for i := 0; i < len(a); i++ { ret[i] = a[i] + b[i] } return ret } //go:noinline func t2(a, b C) C { return t1(a, b) } ``` and build with command: go build main.go