[Bug libstdc++/104361] Biased Reference Counting for the standard library

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 3 22:30:30 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104361

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
I looked at this paper for a different project a while ago, and it doesn't seem
like such a good match for C++ in general. While the basic idea looks simple
(use 2 counters, one for the thread that created the object, one for the
others), making it work in all cases is actually a lot of work. In particular
the paper requires a runtime that periodically checks a queue in each thread.


More information about the Gcc-bugs mailing list