]> Cypherpunks repositories - gostls13.git/commit
runtime: fix stack memory test
authorKeith Randall <khr@golang.org>
Wed, 30 Jul 2014 18:02:40 +0000 (11:02 -0700)
committerKeith Randall <khr@golang.org>
Wed, 30 Jul 2014 18:02:40 +0000 (11:02 -0700)
commit1329d044cf57520704a7a09281a901147abf84cc
tree52872f6ab05886dcbdd26c52347f3fe0b863c6aa
parentaff7883d9a7af1dc89a2c51e06ddfcd3d9f80090
runtime: fix stack memory test

Stand-alone this test is fine.  Run together with
others, however, the stack used can actually go
negative because other tests are freeing stack
during its execution.

This behavior is new with the new stack allocator.
The old allocator never returned (min-sized) stacks.

This test is fairly poor - it needs to run in
isolation to be accurate.  Maybe we should delete it.

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/119330044
src/pkg/runtime/stack_test.go