]> Cypherpunks repositories - gostls13.git/commit
runtime: more reliable preemption
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 13 Aug 2013 18:14:04 +0000 (22:14 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 13 Aug 2013 18:14:04 +0000 (22:14 +0400)
commitf9066fe1c0a7181242f77d8534e0b6e112c982a9
tree1c0a0664c07dd4d6d893319f2e62b9685720b502
parentcc4e6aad8ec18b4ee7fe0392f30f229ddb979589
runtime: more reliable preemption
Currently it's possible that a goroutine
that periodically executes non-blocking
cgo/syscalls is never preempted.
This change splits scheduler and syscall
ticks to prevent such situation.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12658045
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h