🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #1072

Re: Consequential RCU

#1072
From: Chris M. Thomasson
Date: Tue, 01 Dec 2026 01:13
35 lines
2796 bytes
On 11/30/2026 5:09 PM, Chris M. Thomasson wrote:
> 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?

Instead of free, we push a node back into a free list or something...
Technical Details
Message-ID: <11el6v1$12qpf$3@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-mail
References: <118f4vv$3plsv$1@dont-email.me> <11el6p7$12qpf$2@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:13:04 -0800
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <11el6v1$12qpf$3@dont-email.me>
References: <118f4vv$3plsv$1@dont-email.me> <11el6p7$12qpf$2@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:13:06 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1141551"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+yKa+a0R/EO4/qpJsfjLuHbgFkidCslBQ="; posting-host="5898cded6d2676b56560081c09d52a4a"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:sMnOUjRqZyEcPFdyjD/Wb3PqwR4= sha256:He3taUJzyVNtl7a6UbSohk4XNRAQxNEPe0Oho2QQbSM=
	sha1:3HGAHk3Uv9EAWbCFzp5v6Z0MsvQ= sha256:6tRIeUgYAjeNThgCcBtJlfqef92FpBg1frMKFrP+2zg=
In-Reply-To: <11el6p7$12qpf$2@dont-email.me>
Content-Language: en-US