]> Cypherpunks repositories - gostls13.git/commit
runtime: fix init scheduling bug.
authorRuss Cox <rsc@golang.org>
Wed, 22 Jul 2009 02:43:27 +0000 (19:43 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 22 Jul 2009 02:43:27 +0000 (19:43 -0700)
commit052a66babd64cd7f7f1e11f411da694907c31343
tree911a151e5ec5ea6ff93b404f409ea47132395fd6
parent335b3855c6fb8c9e21ad2d3ed8e1bf20f8e5e0e4
runtime: fix init scheduling bug.

if there is a goroutine waiting to run
and the init goroutine enters a system call,
entersyscall was trying to kick off a new
scheduler for the other goroutine, causing
a panic (new goroutines can't run until main.main).

R=r
DELTA=32  (32 added, 0 deleted, 0 changed)
OCL=31982
CL=31982
src/pkg/runtime/proc.c
test/initsyscall.go [new file with mode: 0644]