L4 is now on new algo, using tricky way to init entryies
This commit is contained in:
@@ -137,12 +137,14 @@ namespace StgSharp.HighPerformance.Memory
|
||||
}
|
||||
}
|
||||
head = _head + index;
|
||||
head->Id = index;
|
||||
head->Origin = address;
|
||||
head->Profile = pHandle.MapPolicy;
|
||||
head->RefCount = 0;
|
||||
head->Predictor = (short)predictIndex;
|
||||
|
||||
(*_predictCount)[index] = 1;
|
||||
(*_mapCount)[index] = 1;
|
||||
|
||||
// pre fetch them here
|
||||
predict.Prefetch(head->Origin, head->Profile, new Span<byte>((byte*)head->Address, (int)head->Size));
|
||||
_ = _map.TryAddOrSet(address, (nuint)head, out _);
|
||||
|
||||
Reference in New Issue
Block a user