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
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
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
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
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