We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb46b1 commit 3a94fa4Copy full SHA for 3a94fa4
stack.go
@@ -224,9 +224,9 @@ func Trace() CallStack {
224
sigpanic = findSigpanic()
225
})
226
227
- pcs := getUintptrs()
+ var pcs [512]uintptr
228
229
- n := runtime.Callers(2, pcs)
+ n := runtime.Callers(2, pcs[:])
230
cs := make([]Call, n)
231
232
for i, pc := range pcs[:n] {
@@ -240,8 +240,6 @@ func Trace() CallStack {
240
}
241
242
243
- putUintptrs(pcs)
244
-
245
return cs
246
247
0 commit comments