Comment

Comment by ibraheemdev

> There is no way the shared_ptr<T> is using the expensive sequentially consistent atomic operations.

All RMW operations have sequentially consistent semantics on x86.

It's not exactly a store buffer flush, but any subsequent loads in the pipeline will stall until the store has completed.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton