]> Cypherpunks repositories - gostls13.git/commit
runtime: preempt long-running goroutines
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 18 Jul 2013 21:22:26 +0000 (01:22 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 18 Jul 2013 21:22:26 +0000 (01:22 +0400)
commitbc31bcccd3b94ec8dd324e523c4c7ae9180b937f
treeae43ea1cd52087133568592922685845539505ba
parent58f12ffd79df8ae369afa7ec60ee26d72ce2d843
runtime: preempt long-running goroutines
If a goroutine runs for more than 10ms, preempt it.
Update #543.

R=rsc
CC=golang-dev
https://golang.org/cl/10796043
src/pkg/runtime/proc.c
src/pkg/runtime/proc_test.go
src/pkg/runtime/stack.c