You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program's heap grows without bound in the Go 1.4 beta. Keith, can you take a look?
package main
import (
"runtime"
"sync"
)
func main() {
runtime.GOMAXPROCS(4)
var mu sync.Mutex
var cond sync.Cond
cond.L = &mu
go func() {
for {
cond.Signal()
}
}()
mu.Lock()
for {
cond.Wait()
}
}
The text was updated successfully, but these errors were encountered:
Actually, this may just be that there are no GC points, because the allocation of the
sudog is not allowed to garbage collect. There's a real bug here somewhere but this is
not the right test program.
The text was updated successfully, but these errors were encountered: