diff options
| author | Russ Cox <rsc@golang.org> | 2014-11-20 11:48:08 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-11-20 11:48:08 -0500 |
| commit | 50e0749f8730e88e22e552449049b93ce2a418ac (patch) | |
| tree | fa3e2e93d26fe9de978bbaeeefbc2a427780b329 /src/runtime/proc.go | |
| parent | 754de8d40331ecef4fde116ab5f10f3a8c8904ef (diff) | |
| parent | 2b3f37908060837f8715c61af110b01b8a590c7c (diff) | |
| download | go-50e0749f8730e88e22e552449049b93ce2a418ac.tar.xz | |
[dev.cc] all: merge default (e4ab8f908aac) into dev.cc
TBR=austin
CC=golang-codereviews
https://golang.org/cl/179040044
Diffstat (limited to 'src/runtime/proc.go')
| -rw-r--r-- | src/runtime/proc.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 05ecb3d9eb..50920afe8b 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -165,6 +165,7 @@ func acquireSudog() *sudog { gothrow("acquireSudog: found s.elem != nil in cache") } c.sudogcache = s.next + s.next = nil return s } @@ -190,6 +191,15 @@ func releaseSudog(s *sudog) { if s.selectdone != nil { gothrow("runtime: sudog with non-nil selectdone") } + if s.next != nil { + gothrow("runtime: sudog with non-nil next") + } + if s.prev != nil { + gothrow("runtime: sudog with non-nil prev") + } + if s.waitlink != nil { + gothrow("runtime: sudog with non-nil waitlink") + } gp := getg() if gp.param != nil { gothrow("runtime: releaseSudog with non-nil gp.param") |
