Remove hlsf, TLSF.alloc is ok
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user