πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SMR load...

#559
From: Joseph Seigh
Date: Thu, 15 Oct 2026 00:55
21 lines
2177 bytes
On 10/14/26 6:11 PM, Chris M. Thomasson wrote:
> On 10/14/2026 2:55 PM, Chris M. Thomasson wrote:
>> Why does the C++ memory model seem to require async SMR loads to 
>> basically NEED std::memory_order_consume, which iirc gets folded into 
>> acquire. on the load side of SMR?
> 
> 
> Pure ISO C++ no longer gives you a way to express β€œthis load only needs 
> dependency ordering, no full acquire barrier.”
> 
Data dependent loads aren't really part of any memory model AFAIK.
In the older intel docs, this was in the performance section.
It would cause a stall in the pipeline which you could use
to execute some other instruction.  Out of order processors
may not have this problem so much anymore maybe.

McKenney came up with this to avoid having to use some
more expensive memory barrier.

But you had to be aware that dependent loads only ordered
subsequent loads that were dependent on that load.
Technical Details
Message-ID: <11ap89b$1vkih$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: <11aotod$1sm8r$1@dont-email.me> <11aoum9$1t08a$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: Joseph Seigh <jseigh_es00@xemaps.com>
Newsgroups: comp.lang.c++
Subject: Re: SMR load...
Date: Wed, 14 Oct 2026 20:55:07 -0400
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <11ap89b$1vkih$1@dont-email.me>
References: <11aotod$1sm8r$1@dont-email.me> <11aoum9$1t08a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 15 Oct 2026 00:55:08 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2085457"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18+r4E6mkDHUrW7FEg7YMSI"; posting-host="441e0c3773a2c3eebc41686a51dfb9d7"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FYwAAgMqVyQgELc7Jj2B8PymGqA= sha256:ZKQI5UeR0cW2b25e2a5W7QaQAkFOqcI+oWFVolFrlSI=
	sha1:aomUkFpbvnrdvJ38qWJs/fVs8KI= sha256:VA96SCLy0WMvzpg0KOmTG0923xwPRFxm2KRe6NM8SDk=
Content-Language: en-US
In-Reply-To: <11aoum9$1t08a$1@dont-email.me>