pgsql: Use __sync_lock_test_and_set() for spinlocks on ARM, if availabl
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Use __sync_lock_test_and_set() for spinlocks on ARM, if availabl |
| Дата | |
| Msg-id | E1Rjd3b-0000mS-CT@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Use __sync_lock_test_and_set() for spinlocks on ARM, if available. Historically we've used the SWPB instruction for TAS() on ARM, but this is deprecated and not available on ARMv6 and later. Instead, make use of a GCC builtin if available. We'll still fall back to SWPB if not, so as not to break existing ports using older GCC versions. Eventually we might want to try using __sync_lock_test_and_set() on some other architectures too, but for now that seems to present only risk and not reward. Back-patch to all supported versions, since people might want to use any of them on more recent ARM chips. Martin Pitt Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/0a41e865845bfa5d7aafcc5fe000dafa26573fef Modified Files -------------- configure | 65 ++++++++++++++++++++++++++++++++++++++++++ configure.in | 11 +++++++ src/include/pg_config.h.in | 3 ++ src/include/storage/s_lock.h | 25 +++++++++++++++- 4 files changed, 102 insertions(+), 2 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера