From 4e27aa2b55ebfcd5e5e835a7ee407cb0e8afd9ec Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 9 Sep 2014 13:39:57 -0400 Subject: 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 --- src/runtime/os_freebsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/os_freebsd.c') diff --git a/src/runtime/os_freebsd.c b/src/runtime/os_freebsd.c index 476def557..cde6936de 100644 --- a/src/runtime/os_freebsd.c +++ b/src/runtime/os_freebsd.c @@ -212,7 +212,7 @@ void runtime·minit(void) { // Initialize signal handling - runtime·signalstack((byte*)g->m->gsignal->stackguard - StackGuard, 32*1024); + runtime·signalstack((byte*)g->m->gsignal->stack.lo, 32*1024); runtime·sigprocmask(&sigset_none, nil); } -- cgit v1.2.1