mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.garbage] all: merge dev.cc (493ad916c3b1) into dev.garbage
TBR=austin CC=golang-codereviews https://golang.org/cl/179290043
This commit is contained in:
commit
b8540fc288
207 changed files with 4734 additions and 11182 deletions
|
|
@ -63,11 +63,13 @@ func main() {
|
|||
if _cgo_free == nil {
|
||||
gothrow("_cgo_free missing")
|
||||
}
|
||||
if _cgo_setenv == nil {
|
||||
gothrow("_cgo_setenv missing")
|
||||
}
|
||||
if _cgo_unsetenv == nil {
|
||||
gothrow("_cgo_unsetenv missing")
|
||||
if GOOS != "windows" {
|
||||
if _cgo_setenv == nil {
|
||||
gothrow("_cgo_setenv missing")
|
||||
}
|
||||
if _cgo_unsetenv == nil {
|
||||
gothrow("_cgo_unsetenv missing")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -165,6 +167,7 @@ func acquireSudog() *sudog {
|
|||
gothrow("acquireSudog: found s.elem != nil in cache")
|
||||
}
|
||||
c.sudogcache = s.next
|
||||
s.next = nil
|
||||
return s
|
||||
}
|
||||
|
||||
|
|
@ -193,6 +196,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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue