Commit 83528917 authored by Xavier Thompson's avatar Xavier Thompson

Fix shrink condition in deque.hpp

parent aa27e875
...@@ -87,7 +87,7 @@ namespace typon::fdt::lock_free ...@@ -87,7 +87,7 @@ namespace typon::fdt::lock_free
_bottom.store(bottom + 1, relaxed); _bottom.store(bottom + 1, relaxed);
} }
u64 capacity = array->capacity(); 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); 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