Fix volatile vs. pointer confusion

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Fix volatile vs. pointer confusion
Дата
Msg-id f747368d-9e1a-c46a-ac76-3c27da32e8e4@2ndquadrant.com
обсуждение исходный текст
Ответы Re: Fix volatile vs. pointer confusion
Re: Fix volatile vs. pointer confusion
Re: Fix volatile vs. pointer confusion
Список pgsql-hackers
Variables used after a longjmp() need to be declared volatile.  In
case of a pointer, it's the pointer itself that needs to be declared
volatile, not the pointed-to value.  So we need

    PyObject *volatile items;

instead of

    volatile PyObject *items;  /* wrong */

Attached patch fixes a couple of cases of that.  Most instances were
already correct.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: A separate table level option to control compression
Следующее
От: Andy Fan
Дата:
Сообщение: I have some troubles to run test_shm_mq;