Remove hlsf, TLSF.alloc is ok

This commit is contained in:
Youmu Liu
2026-05-11 18:08:35 +08:00
parent 5706c89563
commit b59d414e20
21 changed files with 267 additions and 1514 deletions
@@ -31,14 +31,14 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hlsf = StgSharp.HighPerformance.Memory.HybridLayerSegregatedFitAllocator;
using Tlsf = StgSharp.HighPerformance.Memory.TwoLayerSegregatedFitAllocator;
namespace StgSharp.HighPerformance.Memory
{
public partial class L4
{
private sealed unsafe class Slab : SlabAllocator<Hlsf.Entry>
private sealed unsafe class Slab : SlabAllocator<Tlsf.Metadata>
{
private const int Capacity = L4.CacheLineCount;
@@ -91,7 +91,7 @@ namespace StgSharp.HighPerformance.Memory
_recycleCount++;
}
public override SlabAllocationHandle<Hlsf.Entry> ReadAllocation()
public override SlabAllocationHandle<Tlsf.Metadata> ReadAllocation()
{
return new(this, false);
}