Re: [HACKERS] A misconception about the meaning of 'volatile' in GetNewTransactionId?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] A misconception about the meaning of 'volatile' in GetNewTransactionId?
Дата
Msg-id 32203.1493515149@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] A misconception about the meaning of 'volatile' in GetNewTransactionId?  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: [HACKERS] A misconception about the meaning of 'volatile' in GetNewTransactionId?  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-hackers
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> I was reading xact.c and noticed this block:
> ...
> Isn't this insufficient on non-TSO systems like POWER and Arm?

Yeah, I think you're right.  That code probably predates our support
for memory barriers, so "volatile" was the best we could do at the
time --- but as you say, it doesn't fix hardware-level rearrangements.
        regards, tom lane



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: [HACKERS] A misconception about the meaning of 'volatile' in GetNewTransactionId?
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: [HACKERS] CTE inlining