使用 sync/atomic 替代 sync.RWMutex,消除统计操作中的锁开销, 提升并发性能。保持 PoolStats 公开 API 不变(返回 plain int64)。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
使用 sync/atomic 替代 sync.RWMutex,消除统计操作中的锁开销, 提升并发性能。保持 PoolStats 公开 API 不变(返回 plain int64)。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>