clear merging conflict
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user