Remove id from L4 head, and other some useless types.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user