Closed ahfuzhang closed 1 year ago
see: https://github.com/cloudwego/netpoll/blob/cf96b810bf76819dc2e78f3218d192fe47f99b64/poll_default_linux.go#L156
pollArgs's member array barriers, the init size is 32. So when event count is bigger than 32, p.barriers[i] will out of range.
barriers
p.barriers[i]
Am I right? I search all code like make([]barrier, no place but reset method to set the array size.
make([]barrier
Thanks.
I miss the line a.events, a.barriers = make([]epollevent, size), make([]barrier, size) sorry
a.events, a.barriers = make([]epollevent, size), make([]barrier, size)
I make a mistake, sorry.
see: https://github.com/cloudwego/netpoll/blob/cf96b810bf76819dc2e78f3218d192fe47f99b64/poll_default_linux.go#L156
pollArgs's member array
barriers
, the init size is 32. So when event count is bigger than 32,p.barriers[i]
will out of range.Am I right? I search all code like
make([]barrier
, no place but reset method to set the array size.Thanks.