some chore
This commit is contained in:
@@ -45,6 +45,7 @@ namespace StgSharp.HighPerformance.Memory
|
||||
Span<CacheLinePrediction> span = new(_prediction, PredictionCount);
|
||||
int actualCount = PrefetchPredict.Predict(span);
|
||||
int missIndex = 0;
|
||||
AgeAll();
|
||||
for (int i = 0; i < actualCount; i++)
|
||||
{
|
||||
ref CacheLinePrediction handle = ref span[i];
|
||||
@@ -62,6 +63,9 @@ namespace StgSharp.HighPerformance.Memory
|
||||
{
|
||||
ref CacheLinePrediction handle = ref span[i];
|
||||
nuint address = handle.Address;
|
||||
nuint mapPtr = _cacheLineAllocator.Allocate();
|
||||
CacheLineHead* head = (CacheLineHead*)_entryAllocator.Allocate();
|
||||
|
||||
|
||||
// pre fetch them here
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user