in this cl https://go-review.googlesource.com/c/go/+/638557/12/src/net/fd_posix.go In my understand, fd and pfd is pointer to same slot cell in gc, why runtime.AddCleanup can not accept runtime.AddCleanup(fd, func(fd){}, fd) as cleanup arg, in my mind, I think they are fd and pfd is same to gc collector.
-- 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...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/2c4177b4-d9a6-43d9-b7d1-552e9beab7c0n%40googlegroups.com.