ceph/cmake/modules/boost_lockfree_queue_valgrind_error.patch
Jason Dillaman b595568218 cmake: boost valgrind fixes for boost::lockfree::queue
The issue has been fixed upstream under lockfree commit
7e23dac52d08ed1a099de9a6fb8bcdefbb06d2da but is not yet available in
a boost release.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-06-28 10:56:03 -04:00

12 lines
495 B
Diff

--- a/boost/lockfree/queue.hpp
+++ b/boost/lockfree/queue.hpp
@@ -108,7 +108,7 @@
typedef typename detail::select_tagged_handle<node, node_based>::handle_type handle_type;
node(T const & v, handle_type null_handle):
- data(v)//, next(tagged_node_handle(0, 0))
+ next(tagged_node_handle(null_handle, 0)), data(v)
{
/* increment tag to avoid ABA problem */
tagged_node_handle old_next = next.load(memory_order_relaxed);