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:
parent
0bbf0ec0ed
commit
0e6007e4f9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user