Files
lincodex/runner/testdata/hostile/go/goroutine_bomb.go
T

11 lines
248 B
Go

// Goroutine bomb: unbounded goroutines parked on a channel need no new OS
// threads, so only their stacks grow; the cgroup memory limit must stop it.
package main
func main() {
block := make(chan struct{})
for {
go func() { <-block }()
}
}