🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Consequential RCU

#38
From: Chris M. Thomasson
Date: Thu, 08 Oct 2026 18:39
32 lines
3012 bytes
On 10/2/2026 11:39 AM, Joseph Seigh wrote:
> On 9/29/26 7:30 PM, Chris M. Thomasson wrote:
>> On 9/28/2026 11:40 PM, David Brown wrote:
>>> On 29/09/2026 00:42, Chris M. Thomasson wrote:
> ...
>>>
>>> (Of course for this particular case, if you can persuade the gcc C++ 
>>> library folk to make their standard cas16 lock-free, then using the 
>>> standard function is best.)
>> Difficult to totally disagree with that David. Shit. Its my own 
>> personal problem with the syntax of GCC inline asm. I am a bit scared 
>> of it. Sigh. Clobbers what? When and where? cdecl for the ABI and 
>> externally assembled functions are fine for me, LTO aside for a 
>> moment, can be bad do not go into my asm! BUT. Again. Shit. Its a 
>> personal problem wrt me saying inline bad! Sorry!
>>
>> Also, if C++ gains a LOCK CMPXCHG16B for a double word, two contiguous 
>> 64 bit words on a 64 bit machine, well GOOD! Show me. I have had some 
>> experiences with it trying to tell me its not lock free.
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80878
> 
> The rationale seems to be you can mix a lock-free operation
> with locked operations since __atomic_always_lock_free and
> __atomic_is_lock_free apply to the data type not specific
> builtins.
> 
> Given that there seems to be no shortage of x86 specific
> gcc builtins, I can't think of any reason why there's
> no cmpxchg16b builtin.

Really strange!
Technical Details
Message-ID: <11a8o0d$402c$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> <118mrl9$2j5vk$1@dont-email.me> <118os9o$36ell$1@dont-email.me> <118pp3b$3hhhe$2@dont-email.me> <118r96b$3ubta$1@dont-email.me> <119486r$33haq$1@dont-email.me> <11954k8$3b7ne$1@dont-email.me> <119eqg6$2p6s6$1@dont-email.me> <119fmgv$316ju$2@dont-email.me> <119hhni$3oib4$1@dont-email.me> <119otp7$2bs8n$1@dont-email.me>

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: Thu, 8 Oct 2026 11:39:07 -0700
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <11a8o0d$402c$1@dont-email.me>
References: <118f4vv$3plsv$1@dont-email.me> <118mrl9$2j5vk$1@dont-email.me>
 <118os9o$36ell$1@dont-email.me> <118pp3b$3hhhe$2@dont-email.me>
 <118r96b$3ubta$1@dont-email.me> <119486r$33haq$1@dont-email.me>
 <11954k8$3b7ne$1@dont-email.me> <119eqg6$2p6s6$1@dont-email.me>
 <119fmgv$316ju$2@dont-email.me> <119hhni$3oib4$1@dont-email.me>
 <119otp7$2bs8n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 08 Oct 2026 18:39:10 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="131148"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18vtRSTtArLPtAeyY4Gw5Y2tWXCOpSFC/M="; posting-host="f2e7a3cc611efc61e65025e165a4acf9"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rroX/wnykHhjsnFh0X8INqlj6G8= sha256:LkNraEkwiBJT683zzvuWxwTbEwICNLkPS1dCDM108is=
	sha1:5NjdNmAMSigHB5Bl0A8cz0ob30M= sha256:DJV/vsz5IIXeljVizh974M5rnlfLg1+nCRe9Lq5/EwA=
Content-Language: en-US
In-Reply-To: <119otp7$2bs8n$1@dont-email.me>