🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Chris M. Thomasson Thu, 08 Oct 2026 18:39
Re: Consequential RCU
#38
Author: 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!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads