()
| 233 | var segmentPool sync.Pool |
| 234 | |
| 235 | func newCallFrameStackSegment() *callFrameStackSegment { |
| 236 | seg := segmentPool.Get() |
| 237 | if seg == nil { |
| 238 | return &callFrameStackSegment{} |
| 239 | } |
| 240 | return seg.(*callFrameStackSegment) |
| 241 | } |
| 242 | |
| 243 | func freeCallFrameStackSegment(seg *callFrameStackSegment) { |
| 244 | segmentPool.Put(seg) |
no test coverage detected
searching dependent graphs…