gopkg icon indicating copy to clipboard operation
gopkg copied to clipboard

Universal Utilities for Go

Results 46 gopkg issues
Sort by recently updated
recently updated
newest added

当单个连续内存超过 1GB 时,mcache 极有可能创建双倍的连续内存,进而导致巨大的内存浪费。而这类 case 实际上应该交由 runtime 去管理内存,单纯 cache 提供的性能收益会被内存放大所吞噬。

step 1 : p.WorkerCount() < atomic.LoadInt32(&p.cap) step 2 : p.incWorkerCount()  step 1 + step 2 not atomic operation , causing the worker count to exceed the cap So Fix...

### Reproduction condition 1. channel using **consume throttle**: eg `ch := channel.New(channel.WithRateThrottle(0, 1))` 2. have a goroutine block on `ch.Output()` 3. and then call ch.Close() in another goroutine In such...

### Question err = gopool.RegisterPool(gopool.NewPool("test", 5, gopool.NewConfig())) 这种命令是不是放到 init 中,假设有10个用户同时访问,是针对1个用户同时最多起5个协程,还是,针对10个用户同时最多起5个协程

question

### Operating System macos ### Go Version go 1.22.1 ### Package Version all version ### Affected Packages protobuf/grpc_compress.go ### Expected Behavior returned normally ### Actual Behavior panic index out of...

bug