From 0e6007e4f91f6c1527c8420ba50056092b58c217 Mon Sep 17 00:00:00 2001 From: Carl Shapiro Date: Tue, 14 May 2013 16:38:12 -0700 Subject: [PATCH] runtime: enable stack scanning by frames Update #5134 R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/9406046 --- src/pkg/runtime/mgc0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pkg/runtime/mgc0.c b/src/pkg/runtime/mgc0.c index f9dbdbb4a1..b5f81c7e75 100644 --- a/src/pkg/runtime/mgc0.c +++ b/src/pkg/runtime/mgc0.c @@ -18,7 +18,7 @@ enum { Debug = 0, DebugMark = 0, // run second pass to check mark CollectStats = 0, - ScanStackByFrames = 0, + ScanStackByFrames = 1, IgnorePreciseGC = 0, // Four bits per word (see #defines below). @@ -1459,6 +1459,8 @@ addstackroots(G *gp) } } if (ScanStackByFrames) { + USED(stk); + USED(guard); doframe = false; runtime·gentraceback(pc, sp, nil, gp, 0, nil, 0x7fffffff, addframeroots, &doframe); } else {