MCPcopy Create free account
hub / github.com/cel-expr/cel-go / release

Method release

interpreter/frame.go:345–353  ·  view source on GitHub ↗
(activation Activation)

Source from the content-addressed store, hash-verified

343}
344
345func (pool *activationStackPool) release(activation Activation) {
346 h, ok := activation.(*hierarchicalActivation)
347 if !ok || !h.poolAllocated {
348 return
349 }
350 h.parent = nil
351 h.child = nil
352 pool.Pool.Put(h)
353}
354
355func newActivationStackPool() *activationStackPool {
356 return &activationStackPool{

Callers 4

TestTrackerPoolShrinkFunction · 0.45
CloseMethod · 0.45
PopMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestTrackerPoolShrinkFunction · 0.36