summaryrefslogtreecommitdiff
path: root/src/runtime/os_nacl.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-09 13:39:57 -0400
committerRuss Cox <rsc@golang.org>2014-09-09 13:39:57 -0400
commit4e27aa2b55ebfcd5e5e835a7ee407cb0e8afd9ec (patch)
treeeb875b7a6cecf8393c783e8fca7d965c708c2e16 /src/runtime/os_nacl.c
parent70174152bf72060230e5a873a683d85e9f9e4538 (diff)
downloadgo-4e27aa2b55ebfcd5e5e835a7ee407cb0e8afd9ec.tar.gz
runtime: assume precisestack, copystack, StackCopyAlways, ScanStackByFrames
Commit to stack copying for stack growth. We're carrying around a surprising amount of cruft from older schemes. I am confident that precise stack scans and stack copying are here to stay. Delete fallback code for when precise stack info is disabled. Delete fallback code for when copying stacks is disabled. Delete fallback code for when StackCopyAlways is disabled. Delete Stktop chain - there is only one stack segment now. Delete M.moreargp, M.moreargsize, M.moreframesize, M.cret. Delete G.writenbuf (unrelated, just dead). Delete runtime.lessstack, runtime.oldstack. Delete many amd64 morestack variants. Delete initialization of morestack frame/arg sizes (shortens split prologue!). Replace G's stackguard/stackbase/stack0/stacksize/ syscallstack/syscallguard/forkstackguard with simple stack bounds (lo, hi). Update liblink, runtime/cgo for adjustments to G. LGTM=khr R=khr, bradfitz CC=golang-codereviews, iant, r https://codereview.appspot.com/137410043
Diffstat (limited to 'src/runtime/os_nacl.c')
-rw-r--r--src/runtime/os_nacl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/os_nacl.c b/src/runtime/os_nacl.c
index aecd61740..14b558303 100644
--- a/src/runtime/os_nacl.c
+++ b/src/runtime/os_nacl.c
@@ -31,7 +31,7 @@ runtime·minit(void)
int32 ret;
// Initialize signal handling
- ret = runtime·nacl_exception_stack((byte*)g->m->gsignal->stackguard - StackGuard, 32*1024);
+ ret = runtime·nacl_exception_stack((byte*)g->m->gsignal->stack.lo, 32*1024);
if(ret < 0)
runtime·printf("runtime: nacl_exception_stack: error %d\n", -ret);