]> Cypherpunks repositories - gostls13.git/commit
runtime: fix CPU profiling on Windows
authorRuss Cox <rsc@golang.org>
Sun, 15 Sep 2013 16:05:24 +0000 (12:05 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 15 Sep 2013 16:05:24 +0000 (12:05 -0400)
commit6d68fc8eeaf32375eda7208b62cedf6ee5d241d0
treec4a98688e747994a46fdaf3942152cd352a7206f
parentaa53b37fa6aeb4ea378b5fc833f0aea5d6f9711e
runtime: fix CPU profiling on Windows

The test 'gp == m->curg' is not valid on Windows,
because the goroutine being profiled is not from the
current m.

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/13718043
src/pkg/runtime/proc.c