Remove id from L4 head, and other some useless types.

This commit is contained in:
Nitload
2026-06-02 00:35:08 +08:00
parent 9a09d32960
commit 07f8178431
6 changed files with 98 additions and 219 deletions
@@ -64,7 +64,7 @@ namespace StgSharp.HighPerformance.Memory
_maxAllocSize = ulong.Max(64, (~64UL) & (ulong.Min(maxBlockSize + 63, CacheLineMetadata.Mask48Bits)));
_maxLevel = int.MaxValue;
_maxLevel = GetLevel(_maxAllocSize);
_bucket = new int[GetLevel(_maxAllocSize) + 2];
_bucket = new short[GetLevel(_maxAllocSize) + 2];
_spareMemory = (CacheLineMetadata*)(ulong)(_basePtr + _totalSize);
_metadataEnd = 0;
@@ -163,7 +163,7 @@ namespace StgSharp.HighPerformance.Memory
private void RemoveFromBucketHead(int level, CacheLineMetadata* node, int nodeIdx)
{
int currentLevel = level;
int currentNextLevelIdx = node->NextLevel;
short currentNextLevelIdx = node->NextLevel;
// int currentPrevLevelIdx = 0;