]> Cypherpunks repositories - gostls13.git/commit
runtime: impose thread count limit
authorRuss Cox <rsc@golang.org>
Sat, 17 Aug 2013 02:25:26 +0000 (22:25 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 17 Aug 2013 02:25:26 +0000 (22:25 -0400)
commit665feeedcbef8a1c968d6da5be052e9fd9678380
treeff7e9bbadcff77d98aa80c79c63a9540c2b11795
parent3b4d792606bf6de962bed73e79c261d7ddd7266c
runtime: impose thread count limit

Actually working to stay within the limit could cause subtle deadlocks.
Crashing avoids the subtlety.

Fixes #4056.

R=golang-dev, r, dvyukov
CC=golang-dev
https://golang.org/cl/13037043
src/pkg/runtime/crash_test.go
src/pkg/runtime/debug/garbage.go
src/pkg/runtime/proc.c