]> Cypherpunks repositories - gostls13.git/commit
runtime: ensure forward progress of runtime.Gosched() for locked goroutines
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 20 Feb 2013 08:13:04 +0000 (12:13 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 20 Feb 2013 08:13:04 +0000 (12:13 +0400)
commita92e11a256d8a527d547a2772992d9d9870fa817
tree67d3aca20562984dc317af4564393e69e5ac7da4
parent92ab6fb4e1e994c951749e4ed82c88d99bd10f0c
runtime: ensure forward progress of runtime.Gosched() for locked goroutines
The removed code leads to the situation when M executes the same locked G again
and again.
This is https://golang.org/cl/7310096 but with return instead of break
in the nested switch.
Fixes #4820.

R=golang-dev, alex.brainman, rsc
CC=golang-dev
https://golang.org/cl/7304102
src/pkg/runtime/proc.c
src/pkg/runtime/proc_test.go