L4 brief ok

This commit is contained in:
Youmu Liu
2026-03-13 17:39:40 +08:00
parent c1c1a16627
commit 5da448548b
3 changed files with 13 additions and 9 deletions
@@ -73,7 +73,7 @@ namespace StgSharp.HighPerformance.Memory
int bitPos = BitOperations.TrailingZeroCount(evictMask);
int index = bitPos + i;
CacheLineHead* head = &_head[index];
if (Interlocked.CompareExchange(ref head->_refCount, -1, 0) == 0)
if (Interlocked.CompareExchange(ref head->_refCount, int.MinValue, 0) == 0)
{
// EvictLine(i + index);
_ = _map.TryRemove(head->_origin, out _);