Merge pull request #94 from GeWuYou/refactor/pool-simplify-warning-messages

refactor(pool): 简化对象池释放警告消息
This commit is contained in:
gewuyou 2026-03-10 20:24:58 +08:00 committed by GitHub
commit 1f0eb55288
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,8 +73,7 @@ public abstract class AbstractObjectPoolSystem<TKey, TObject>
{
// 记录警告:检测到可能的双重释放或错误释放
Debug.WriteLine(
$"[ObjectPool] Warning: Attempting to release object for key '{key}' " +
$"but ActiveCount is already 0. Possible double-release or incorrect key.");
$"[ObjectPool] Warning: Release called with key '{key}', but ActiveCount is already 0. Possible double release.");
}
// 检查容量限制