Currently most of the 32-bit builder are broken.
Fixes #5516.
R=golang-dev, dave, iant
CC=golang-dev
https://golang.org/cl/
9573043
}
func main() {
+ // Does not work on 32-bits due to partially conservative GC.
+ // Try to enable when we have fully precise GC.
+ if runtime.GOARCH != "amd64" {
+ return
+ }
count = N
var wg sync.WaitGroup
wg.Add(N)
runtime.GC()
}
if count != 0 {
+ println(count, "out of", N, "finalizer are called")
panic("not all finalizers are called")
}
}