Groups
Groups
Sign in
Groups
Groups
golang-nuts
Conversations
About
Send feedback
Help
Confuse about runtime.AddCleanup
101 views
Skip to first unread message
xie cui
unread,
Aug 16, 2025, 12:21:45 PM
Aug 16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
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.
Reply all
Reply to author
Forward
0 new messages