]> Cypherpunks repositories - gostls13.git/commit
runtime: fix stack size check
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 13 Mar 2014 09:16:02 +0000 (13:16 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 13 Mar 2014 09:16:02 +0000 (13:16 +0400)
commit5daffee17fdd8c10ead83a87861d99c39f05561d
treeaf4d7c75bb24377aa438f7d47bc91f9faea93f9d
parent28792f5d83578d9087be5d3b2490ae8a10e189de
runtime: fix stack size check
When we copy stack, we check only new size of the top segment.
This is incorrect, because we can have other segments below it.

LGTM=khr
R=golang-codereviews, khr
CC=golang-codereviews, rsc
https://golang.org/cl/73980045
src/pkg/runtime/stack.c