Commit 0e6007e4 authored by Carl Shapiro's avatar Carl Shapiro

runtime: enable stack scanning by frames

Update #5134

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9406046
parent 0bbf0ec0
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment