]> Cypherpunks repositories - gostls13.git/commit
runtime: track running goroutine count
authorRuss Cox <rsc@golang.org>
Mon, 18 Jul 2011 19:50:55 +0000 (15:50 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 18 Jul 2011 19:50:55 +0000 (15:50 -0400)
commitbd77619142f6eb9212fb99ca17aade47afc001e5
tree7913a72888e644107deb7a7ad3e0a11981e636a2
parent27753ff10897b566b6b8086f5fa3c83b6c4c271e
runtime: track running goroutine count

Used to use mcpu+msyscall but that's
problematic for packing into a single
atomic word.  The running goroutine count
(where running == Go code or syscall)
can be maintained separately, always
manipulated under lock.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4767041
src/pkg/runtime/proc.c