L4 is now on new algo, using tricky way to init entryies

This commit is contained in:
Youmu Liu
2026-04-23 18:07:14 +08:00
parent 1a6ce24a27
commit 2f6617447c
4 changed files with 19 additions and 4 deletions
@@ -25,6 +25,7 @@
//
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
using StgSharp.HighPerformance.ProcessorAbstraction;
using System.Runtime.InteropServices;
using Hlsf = StgSharp.HighPerformance.Memory.HybridLayerSegregatedFitAllocator;
@@ -55,12 +56,13 @@ namespace StgSharp.HighPerformance.Memory
{
[FieldOffset(0)] internal Hlsf.Entry AllocatorEntry;
[FieldOffset(0)] internal readonly M512 Buffer;
#region reference counting and state information
[FieldOffset(52)] internal int RefCount;
[FieldOffset(60)] private readonly int Reverse;
[FieldOffset(56)] internal int Id;
[FieldOffset(56)] internal readonly int Id;
#endregion