🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Consequential RCU

#313
From: Chris M. Thomasson
Date: Mon, 12 Oct 2026 20:14
17 lines
2511 bytes
On 10/11/2026 9:32 PM, Bonita Montero wrote:
> static void timedTest( char const *what, auto fn, bool forTbl );
> 
[...]
> But I'm pretty sure you don't understand the code since you didn't
> understand the basic idea.

Sigh.

Your Load, Store and Xchg tests never change the pointer, so they only 
measure the fast path. Could you add one where a writer keeps swapping 
the slot while the others poll it, and print allocations vs. frees at 
the end?

one thread republishing through StoreAlt while the others run Load, plus 
an allocated-versus-freed check at the end. That shows the herd on the 
lock and any leak in one run.
Technical Details
Message-ID: <11ajf2q$3uudf$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <118f4vv$3plsv$1@dont-email.me> <11a0l38$150m3$1@raubtier-asyl.eternal-september.org> <11a0odn$16c2e$1@dont-email.me> <11a0tf5$18frd$1@raubtier-asyl.eternal-september.org> <11a4i3l$2i092$3@dont-email.me> <11a5fpa$2sm77$1@raubtier-asyl.eternal-september.org> <11a695o$370r9$3@dont-email.me> <11a749f$3fl36$2@raubtier-asyl.eternal-september.org> <11aea6s$23clj$2@dont-email.me> <11af538$2bhju$1@raubtier-asyl.eternal-september.org> <11agtqp$30rp8$1@dont-email.me> <11ahjij$37hnn$1@raubtier-asyl.eternal-september.org> <11ahkae$37oqq$1@dont-email.me> <11ahnst$38s55$1@raubtier-asyl.eternal-september.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!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, 12 Oct 2026 13:14:15 -0700
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <11ajf2q$3uudf$1@dont-email.me>
References: <118f4vv$3plsv$1@dont-email.me>
 <11a0l38$150m3$1@raubtier-asyl.eternal-september.org>
 <11a0odn$16c2e$1@dont-email.me>
 <11a0tf5$18frd$1@raubtier-asyl.eternal-september.org>
 <11a4i3l$2i092$3@dont-email.me>
 <11a5fpa$2sm77$1@raubtier-asyl.eternal-september.org>
 <11a695o$370r9$3@dont-email.me>
 <11a749f$3fl36$2@raubtier-asyl.eternal-september.org>
 <11aea6s$23clj$2@dont-email.me>
 <11af538$2bhju$1@raubtier-asyl.eternal-september.org>
 <11agtqp$30rp8$1@dont-email.me>
 <11ahjij$37hnn$1@raubtier-asyl.eternal-september.org>
 <11ahkae$37oqq$1@dont-email.me>
 <11ahnst$38s55$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 12 Oct 2026 20:14:19 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="4159919"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19WsX4iEZA0Hppc0+QcMcL1+upNtJ1QYB0="; posting-host="23695f1b3419bf2835ebd55b3868dbf0"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JclhkVK68gX5J44p3PKZm9nDYeo= sha256:2FRNSIcVOBWtX6xXaFpOyFSJiUxIVzcMJ2soc13Q9/0=
	sha1:kJ7hXalx86eSU+M/Sa4GO5eSgtY= sha256:P2VRjIa6mz9pfJy/QxuZOVQNXUNRy1LwQo65Y5SInYc=
In-Reply-To: <11ahnst$38s55$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US