Re: Atomic operations within spinlocks

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Atomic operations within spinlocks
Дата
Msg-id CA+Tgmob_iAh7ert+c6Btc1x0p0peHy10wdZ83KtWO-4csbkEZg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Atomic operations within spinlocks  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Thu, Jun 11, 2020 at 1:26 PM Andres Freund <andres@anarazel.de> wrote:
> Well, pss_barrierCheckMask member is just 32bit, so it seems odd to
> declare the local variable 64bit?
>
>         uint64          flagbit = UINT64CONST(1) << (uint64) type;
> ...
>                 pg_atomic_fetch_or_u32(&slot->pss_barrierCheckMask, flagbit);

Oooooops.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: new heapcheck contrib module
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [PATCH] fix two shadow vars (src/backend/commands/sequence.c)