diff options
Diffstat (limited to 'src/runtime/select.go')
| -rw-r--r-- | src/runtime/select.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/select.go b/src/runtime/select.go index e918b734a8..5e5047bc10 100644 --- a/src/runtime/select.go +++ b/src/runtime/select.go @@ -399,6 +399,7 @@ loop: } } sgnext = sglist.waitlink + sglist.waitlink = nil releaseSudog(sglist) sglist = sgnext } @@ -636,6 +637,7 @@ func (q *waitq) dequeueSudoG(s *sudog) { if q.last == sgp { q.last = prevsgp } + s.next = nil return } l = &sgp.next |
