Commit 310aaa0c authored by Xavier Thompson's avatar Xavier Thompson

Fix shrink condition in deque.hpp

parent 5b9c983f
......@@ -87,7 +87,7 @@ namespace typon::fdt::lock_free
_bottom.store(bottom + 1, relaxed);
}
u64 capacity = array->capacity();
if (capacity > u64(1) << _bits && capacity < (bottom - top) * 4)
if (capacity > u64(1) << _bits && capacity > (bottom - top) * 4)
{
x.set_state(Prune);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment