]> Cypherpunks repositories - gostls13.git/commit
runtime: fix scanning of not started goroutines
authorCarl Shapiro <cshapiro@google.com>
Thu, 16 May 2013 17:42:39 +0000 (10:42 -0700)
committerCarl Shapiro <cshapiro@google.com>
Thu, 16 May 2013 17:42:39 +0000 (10:42 -0700)
commit50ba6e13b4b552117d4c9d966729eda1948e7a96
tree644c745ce527bd3856aa023fe4d4829e3e6d12bb
parent21cf646bfcc35711ce0c728f3d1e44ffe6b054e8
runtime: fix scanning of not started goroutines

The stack scanner for not started goroutines ignored the arguments
area when its size was unknown.  With this change, the distance
between the stack pointer and the stack base will be used instead.

Fixes #5486

R=golang-dev, bradfitz, iant, dvyukov
CC=golang-dev
https://golang.org/cl/9440043
src/pkg/runtime/mgc0.c