| 140 | } |
| 141 | |
| 142 | type trackingBufferPool struct { |
| 143 | pool mem.BufferPool |
| 144 | logger Logger |
| 145 | |
| 146 | lock sync.Mutex |
| 147 | bufferCount int |
| 148 | allocatedBuffers map[*[]byte][]uintptr |
| 149 | } |
| 150 | |
| 151 | func (p *trackingBufferPool) Get(length int) *[]byte { |
| 152 | p.lock.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected