diff options
Diffstat (limited to 'src/runtime/mgcmark.go')
| -rw-r--r-- | src/runtime/mgcmark.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/runtime/mgcmark.go b/src/runtime/mgcmark.go index bbb1ca2f6b..d5c981f17a 100644 --- a/src/runtime/mgcmark.go +++ b/src/runtime/mgcmark.go @@ -797,11 +797,10 @@ func scanstack(gp *g, gcw *gcWork) int64 { } // Scan the stack. Accumulate a list of stack objects. - scanframe := func(frame *stkframe, unused unsafe.Pointer) bool { - scanframeworker(frame, &state, gcw) - return true + var u unwinder + for u.init(gp, 0); u.valid(); u.next() { + scanframeworker(&u.frame, &state, gcw) } - gentraceback(^uintptr(0), ^uintptr(0), 0, gp, 0, nil, 0x7fffffff, scanframe, nil, 0) // Find additional pointers that point into the stack from the heap. // Currently this includes defers and panics. See also function copystack. |
