(activation Activation)
| 225 | } |
| 226 | |
| 227 | func (pool *activationStackPool) release(activation Activation) { |
| 228 | h, ok := activation.(*hierarchicalActivation) |
| 229 | if !ok || !h.poolAllocated { |
| 230 | return |
| 231 | } |
| 232 | h.parent = nil |
| 233 | h.child = nil |
| 234 | pool.Pool.Put(h) |
| 235 | } |
| 236 | |
| 237 | func newActivationStackPool() *activationStackPool { |
| 238 | return &activationStackPool{ |