]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: memory_pool: Update the seq number in pool_flush().
authorOlivier Houchard <cognet@ci0.org>
Sat, 1 Feb 2020 16:37:22 +0000 (17:37 +0100)
committerOlivier Houchard <cognet@ci0.org>
Sat, 1 Feb 2020 17:08:34 +0000 (18:08 +0100)
commitb6fa08bc7bca48e0098b555e3c433e0969f46d4c
tree8418233377817bf1f0040e613e1ae67627b1625a
parent952c2640b009537bc7cae71f47cb869cb4b132df
BUG/MEDIUM: memory_pool: Update the seq number in pool_flush().

In pool_flush(), we can't just set the free_list to NULL, or we may suffer
the ABA problem. Instead, use a double-width CAS and update the sequence
number.

This should be backported to 2.1, 2.0 and 1.9.
This may, or may not, be related to github issue #476.
src/memory.c