Sujet : Re: Futex Stack Test...
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.c++Date : 08. May 2025, 10:11:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vvhsgi$1lld7$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
Am 04.05.2025 um 03:57 schrieb Chris M. Thomasson:
The ABA problem _and_ memory issue is only there in on the single node pop for a lock-free stack. If you just whack it with a nullptr aka flush _all_ nodes, then you are all right and ready to roll.
Very interesting! I'm just going to believe this without having thought
it through. This ultimately means that when memory allocators clean up
foreign releases from a lock-free stack, they don't need DWCAS to do so.