Article View: comp.lang.c++
Article #1071Re: Consequential RCU
From: Chris M. Thomasson
Date: Tue, 01 Dec 2026 01:09
Date: Tue, 01 Dec 2026 01:09
32 lines
2597 bytes
2597 bytes
On 9/16/2026 3:25 PM, Joseph Seigh wrote: > https://jseigh.wordpress.com/2026/09/07/consequential-concurrent- > sequential-rcu/ > > The name doesn't really mean anything. I was just generalizing something > that's been around forever.* It's simple enough that it must be in use > somewhere. I just haven't noticed it. I looked up the linux kernal > seqlock documentation and it specifically says not to use pointers in > seqlock protected data and no idea why that is unless the linux kernel > is doing something weird with memory mapping. > > Like seqlock, it is obstruction-free. If you have qsbr (RCU) or ebr, > that would be a better choice. It might be good for libraries where > the memory reclamation is hidden from the application. > > * tangentially related to something that I was working on which if far > more perverse but mostly in a solution that is looking for a problem > phase so it probably won't go anywhere. I notice your Writer logic: Update data with one or more atomic updates. Increment update counter w/ release memory order. Free old memory (per requirement 1) No wonder why you have: All memory addresses used must always be valid. No MUNMAP to unmap memory or MPROTECT to restrict subsequent access to memory. It makes me think of pre allocating our node state up front. So, there is no free during usage? What am I missing here Joe?
Technical Details
Message-ID:
<11el6p7$12qpf$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<118f4vv$3plsv$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c++ Subject: Re: Consequential RCU Date: Mon, 30 Nov 2026 17:09:59 -0800 Organization: A noiseless patient Spider Lines: 32 Message-ID: <11el6p7$12qpf$2@dont-email.me> References: <118f4vv$3plsv$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 01 Dec 2026 01:10:00 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1141551"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191ylNF+/t9MEbwN0Hx8DjgdCmi1STSfqU="; posting-host="5898cded6d2676b56560081c09d52a4a" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:YmKcXT09GtnlAFDRVIXsUc2Or+0= sha256:N1NXt9EW8gR+izppdpwK1oxgf9WajdGy+Zs0L2P2KEY= sha1:i1qyUGBqbfbm+nLgJsj7ePlfcXA= sha256:iXZM+WZjQUwkSyoDp/PYDqC9bL9gx9PCdVF6ap5naCY= Content-Language: en-US In-Reply-To: <118f4vv$3plsv$1@dont-email.me>