MCPcopy
hub / github.com/grpc/grpc-go / trackingBufferPool

Struct trackingBufferPool

internal/leakcheck/leakcheck.go:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected