mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
Our testing showed that this is helpful at sufficiently high contention levels and doesn't hurt performance on smaller machines. The new TAS_SPIN macro for AArch64 is identical to the ones added for PPC and x86_64 (see commitsbc2a050d40andb03d196be0). Back-patch of commit3d0b4b1068, which first shipped in v18. Salvatore Dipietro reports that this change is beneficial on newer Linux kernels, and the original commit has aged long enough to provide some confidence that it won't cause problems. v14 is left alone since it lacks commita82a5eee31and will soon be out of support. Reported-by: Salvatore Dipietro <dipiets@amazon.it> Reviewed-by: Jingtang Zhang <mrdrivingduck@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Tested-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/ZxgDEb_VpWyNZKB_%40nathan Discussion: https://postgr.es/m/20260915114623.431827-1-dipiets%40amazon.it Backpatch-through: 15