model-writtenrun 5004 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- 吴亚飞 proposed loongarch64 spinlock support using GCC synchronization primitives in an architecture-specific stanza in #1.
- Tom Lane proposed a generic fallback for unsupported architectures, defaulting to int-width locks and eliminating the separate RISC-V stanza in #2; Andres Freund endorsed that approach in #3.
- Tom supplied the generic implementation in #4, then revised its placement in #5 after testing on macOS ARM exposed a conflict with the default S_UNLOCK definition.
- Andres reported successful x86-64 testing and a small contention-performance penalty without spin_delay in #6; he suggested sharing the ARM implementation, but Tom chose to retain its separate stanza for future architecture-specific improvements in #7.
- Commit 1c72d82c25 landed #5 unchanged, providing the generic fallback while retaining the ARM-specific implementation, and the change was backpatched to supported branches.
- Andres accepted the decision to retain the ARM stanza in #8, closing the thread after the change had landed with no outstanding revision requested.