Re: Little cleanup: Move ProcStructLock to the ProcGlobal struct

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Little cleanup: Move ProcStructLock to the ProcGlobal struct
Дата
Msg-id 4100316.1770823740@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Little cleanup: Move ProcStructLock to the ProcGlobal struct  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.fi> writes:
> On 11/02/2026 16:52, Tom Lane wrote:
>> This is not a great situation.  I wonder if we can put back some
>> mode that could be used by a few BF members to catch such oversights.

> Do we still support any architectures where initializing the spinlock to 
> all-zeros doesn't do the right thing? Could we accept that all-zeros is 
> a valid initialization of a spinlock?

I'm not terribly comfortable with that: it seems short-sighted.
Even today, on platforms where we use __sync_lock_test_and_set /
__sync_lock_release, the gcc manual does not quite promise that
the released state is all-zero.

            regards, tom lane



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