go-generics-cache icon indicating copy to clipboard operation
go-generics-cache copied to clipboard

Addressing strange memory leak

Open gonejack opened this issue 2 weeks ago • 0 comments

https://github.com/Code-Hex/go-generics-cache/blob/2601bb0d3c67fc00cdbd5763cc2361d2a363f0ee/cache.go#L277-L279

After some pprof job, I believe this line make memory leaks as this would not checking lru cache capacity before doing heap push.

gonejack avatar Jun 19 '24 18:06 gonejack