Re: Making wait events a bit more efficient

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Making wait events a bit more efficient
Дата
Msg-id 20210402201011.mrjd2p4pb2zg33qt@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Making wait events a bit more efficient  (Zhihong Yu <zyu@yugabyte.com>)
Ответы Re: Making wait events a bit more efficient
Список pgsql-hackers
Hi,

On 2021-04-02 13:06:35 -0700, Zhihong Yu wrote:
> +extern PGDLLIMPORT uint32 *my_wait_event_info;
> 
> It seems volatile should be added to the above declaration. Since later:
> 
> +   *(volatile uint32 *) my_wait_event_info = wait_event_info;

Why? We really just want to make the store volatile, nothing else. I
think it's much better to annotate that we want individual stores to
happen regardless of compiler optimizations, rather than all
interactions with a variable.

Greetings,

Andres Freund



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

Предыдущее
От: Zhihong Yu
Дата:
Сообщение: Re: Making wait events a bit more efficient
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Add client connection check during the execution of the query