MCPcopy Index your code
hub / github.com/yuin/gopher-lua / newCallFrameStackSegment

Function newCallFrameStackSegment

state.go:235–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233var segmentPool sync.Pool
234
235func newCallFrameStackSegment() *callFrameStackSegment {
236 seg := segmentPool.Get()
237 if seg == nil {
238 return &callFrameStackSegment{}
239 }
240 return seg.(*callFrameStackSegment)
241}
242
243func freeCallFrameStackSegment(seg *callFrameStackSegment) {
244 segmentPool.Put(seg)

Callers 2

PushMethod · 0.70

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…