Re: Requiring 32 bit atomics

2022-10-27 Thread Andres Freund
Hi, On 2022-10-27 19:44:13 -0400, Tom Lane wrote: > Turns out they have a pretty cute workaround for it, on HPPA and a couple of > other atomics-less arches they still support. They've written short > sequences that have the effect of CAS and are designed to store to memory > only at the end. To

Re: Requiring 32 bit atomics

2022-10-27 Thread Tom Lane
I wrote: > But wait, you say, what about mamba-nee-gaur, my HPPA dinosaur? sigh ... s/mamba/chickadee/. Got too many NetBSD machines, perhaps. regards, tom lane

Re: Requiring 32 bit atomics

2022-10-27 Thread Tom Lane
Thomas Munro writes: > We have fallback code for computers that don't have 32 bit atomic ops. > Of course all modern ISAs have 32 bit atomics, but various comments > imagine that a new architecture might be born that we don't have > support for yet, so the fallback provides a way to bring a new sy

Requiring 32 bit atomics

2022-10-27 Thread Thomas Munro
Hi, We have fallback code for computers that don't have 32 bit atomic ops. Of course all modern ISAs have 32 bit atomics, but various comments imagine that a new architecture might be born that we don't have support for yet, so the fallback provides a way to bring a new system up by implementing o