| From: | "Greg Burd" <greg(at)burd(dot)me> |
|---|---|
| To: | "Thomas Munro" <thomas(dot)munro(at)gmail(dot)com>, "PostgreSQL Hackers" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Trying out <stdatomic.h> |
| Date: | 2026-03-21 18:39:31 |
| Message-ID: | 5542e706-c802-476c-abc2-9ecbe5cb66e4@app.fastmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hey Thomas, hackers,
I think that $subject is interesting because it presents an opportunity to reduce the code we maintain and potentially improve performance. This thread has languished a bit on the list, so I picked it up. I've tried it out on my local systems (greenfly, unicorn, icarus, macOS, and a Fedora x86_64 laptop I use as my daily driver) using clang, gcc, and MSVC. It seems to work, I still need to measure performance.
tested:
- Linux x86_64 (GCC 14.3.0)
- Linux RISC-V (GCC 13.3.0, Clang 20.1.2)
- FreeBSD x86_64 (Clang 19.1.7)
- Windows ARM64 (MSVC 2022)
I realize we're close to the end of the v19 cycle, but one last look couldn't hurt could it? Attached is "v3" of his patch set. Is anyone else interested in this? :)
best.
-greg
> best.
>
> -greg
| Attachment | Content-Type | Size |
|---|---|---|
| v3-0001-Enable-Visual-Studio-s-stdatomic.h-support.patch | text/x-patch | 853 bytes |
| v3-0002-Redefine-port-atomics.h-on-top-of-stdatomic.h.patch | text/x-patch | 68.9 KB |
| v3-0003-Use-atomics-API-to-implement-spinlocks.patch | text/x-patch | 35.7 KB |
| v3-0004-Remove-configure-meson-checks-for-atomics.patch | text/x-patch | 16.1 KB |
| v3-0005-Spin-delay-on-Windows-ARM64-MSVC-should-use-__isb.patch | text/x-patch | 1.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2026-03-21 18:40:06 | Re: POC: PLpgSQL FOREACH IN JSON ARRAY |
| Previous Message | Andres Freund | 2026-03-21 18:36:31 | Re: Add RISC-V Zbb popcount optimization |