HLSF functionally available

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-08-24 13:41:35 +08:00
parent 11b630ffa2
commit 8779d7d77c
110 changed files with 268 additions and 78705 deletions
@@ -48,13 +48,13 @@ namespace StgSharp.HighPerformance.Memory
return;
}
if (GetEntryState(e) != EntryState.Allocated) {
if (e->State != EntryState.Allocated) {
return;
}
// Set to ThreadOccupied to prevent other operations
SetEntryState(e, EntryState.ThreadOccupied);
e->State = EntryState.Empty;
// Try merge with adjacent free blocks and remove them from buckets
@@ -68,7 +68,7 @@ namespace StgSharp.HighPerformance.Memory
// Set the merged entry state to Empty (ready to be reused)
SetEntryState(e, EntryState.Empty);
e->State = EntryState.Empty;
// Push the merged entry back to appropriate bucket