Fixed the bug that UnsafeSlotMap return wrong generation after resize.

This commit is contained in:
2025-12-12 16:35:04 +09:00
parent c4ca3e1bc9
commit 5184363e7d
4 changed files with 7 additions and 4 deletions

View File

@@ -26,6 +26,6 @@ using Misaki.HighPerformance.Collections;
using Misaki.HighPerformance.LowLevel.Buffer;
using Misaki.HighPerformance.LowLevel.Collections;
var csm = new ConcurrentSlotMap<int>();
var csm = new UnsafeSlotMap<int>();
Console.WriteLine(csm.Contains(0, 0));
Console.WriteLine(csm.Count == 0);