On 23.07.26 21:56, Nathan Bossart wrote:
On Wed, Jul 22, 2026 at 09:31:49AM -0400, Nathan Bossart wrote:
Ah.  It looks like we could use 0 as the sentinel and simplify the call
sites.  They subtract one before calling SetStartupBufferPinWaitBufId() and
add one after calling GetStartupBufferPinWaitBufId().

I added a new prerequisite patch (v2-0004) that does this.

Maybe this is okay, but there are a bunch more places (not touched by your patches) that mix unsigned atomics operations with actually signed values. Stuff like PIDs and proc numbers. I think for better overall hygiene and to simplify broader adoption, perhaps we should introduce support for signed atomic variables.



Reply via email to