commit | b6fa08bc7bca48e0098b555e3c433e0969f46d4c | [log] [tgz] |
---|---|---|
author | Olivier Houchard <cognet@ci0.org> | Sat Feb 01 17:37:22 2020 +0100 |
committer | Olivier Houchard <cognet@ci0.org> | Sat Feb 01 18:08:34 2020 +0100 |
tree | 8418233377817bf1f0040e613e1ae67627b1625a | |
parent | 952c2640b009537bc7cae71f47cb869cb4b132df [diff] |
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.