Daily update on 20260312-004950 by Nitload Youmu. Additional Message : use one single index mux as replacement of two slab allocators for L4.

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2026-03-12 00:49:50 +08:00
parent 9b5dfec9d5
commit 0c1887d8f8
7 changed files with 197 additions and 88 deletions
@@ -2,8 +2,8 @@
// -----------------------------------------------------------------------
// file="L4.Prefetch"
// Project: StgSharp
// AuthorGroup: Nitload
// Copyright (c) Nitload. All rights reserved.
// AuthorGroup: Nitload Space
// Copyright (c) Nitload Space. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@@ -71,11 +71,14 @@ namespace StgSharp.HighPerformance.Memory
}
}
private partial bool TestHit(
nuint origin
)
private partial bool TestHit(nuint origin)
{
// needs implementation
if (_map.TryGet(origin, out nuint handle))
{
CacheLineHead* head = (CacheLineHead*)handle;
int index = head->_id;
(*_eviction)[index] = 0; // reset eviction counter
}
return false;
}