]> Cypherpunks repositories - gostls13.git/commit
runtime: efence support for growable stacks
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 12 Mar 2014 06:21:34 +0000 (10:21 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 12 Mar 2014 06:21:34 +0000 (10:21 +0400)
commit1f4d2e79b0aaef6a9be08b01a97fe7b40b398ae7
tree29a2484e585e79ec73586a75df1d9acaf4ef5446
parent00e6fc1e9e709a5c29b79d9aed8ae135cd54a445
runtime: efence support for growable stacks
1. Fix the bug that shrinkstack returns memory to heap.
   This causes growslice to misbehave (it manually initialized
   blocks, and in efence mode shrinkstack's free leads to
   partially-initialized blocks coming out of growslice.
   Which in turn causes GC to crash while treating the garbage
   as Eface/Iface.
2. Enable efence for stack segments.

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