diff options
| author | Russ Cox <rsc@golang.org> | 2012-03-15 15:22:30 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2012-03-15 15:22:30 -0400 |
| commit | 9e5db8c90a319b30a409a266853e8053f7b534d9 (patch) | |
| tree | 45691ae1c6aea8c02c20b381d5a9c30bdcbf0af7 /src/pkg/runtime/stack.h | |
| parent | b7b36524143e64738997ce3dbcfe38437e070f3c (diff) | |
| download | go-9e5db8c90a319b30a409a266853e8053f7b534d9.tar.xz | |
5l, 6l, 8l: fix stack split logic for stacks near default segment size
Fixes #3310.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5823051
Diffstat (limited to 'src/pkg/runtime/stack.h')
| -rw-r--r-- | src/pkg/runtime/stack.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/runtime/stack.h b/src/pkg/runtime/stack.h index f56dac120f..d42385d6cb 100644 --- a/src/pkg/runtime/stack.h +++ b/src/pkg/runtime/stack.h @@ -94,4 +94,9 @@ enum { // The maximum number of bytes that a chain of NOSPLIT // functions can use. StackLimit = StackGuard - StackSystem - StackSmall, + + // The assumed size of the top-of-stack data block. + // The actual size can be smaller than this but cannot be larger. + // Checked in proc.c's runtime.malg. + StackTop = 72, }; |
