pgsql: Remove swpb-based spinlock implementation for ARMv5 and earlier.
В списке pgsql-committers по дате отправления:
| От | Robert Haas |
|---|---|
| Тема | pgsql: Remove swpb-based spinlock implementation for ARMv5 and earlier. |
| Дата | |
| Msg-id | E1X3rcb-0004uu-Dr@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Remove swpb-based spinlock implementation for ARMv5 and earlier. Per recent analysis by Andres Freund, this implementation is in fact unsafe, because ARMv5 has weak memory ordering, which means tha the CPU could move loads or stores across the volatile store performed by the default S_UNLOCK. We could try to fix this, but have no ARMv5 hardware to test on, so removing support seems better. We can still support ARMv5 systems on GCC versions new enough to have built-in atomics support for this platform, and can also re-add support for the old way if someone has hardware that can be used to test a fix. However, since the requirement to use a relatively-new GCC hasn't been an issue for ARMv6 or ARMv7, which lack the swpb instruction altogether, perhaps it won't be an issue for ARMv5 either. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/4893ccd02459fdb444f4f4b34c441eb899592879 Modified Files -------------- src/include/storage/s_lock.h | 54 +++++------------------------------------- 1 file changed, 6 insertions(+), 48 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера