1
0
mirror of https://github.com/golang/go synced 2024-11-17 20:04:47 -07:00

runtime: enable stack scanning by frames

Update #5134

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9406046
This commit is contained in:
Carl Shapiro 2013-05-14 16:38:12 -07:00
parent 0bbf0ec0ed
commit 0e6007e4f9

View File

@ -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 {