Re: PGPROC alignment (was Re: pgsql: Separate RecoveryConflictReasons from procsignals)
В списке pgsql-hackers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: PGPROC alignment (was Re: pgsql: Separate RecoveryConflictReasons from procsignals) |
| Дата | |
| Msg-id | d7a788fa-e609-4894-a8be-2f70e135424f@eisentraut.org обсуждение |
| Ответ на | Re: PGPROC alignment (was Re: pgsql: Separate RecoveryConflictReasons from procsignals) (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>) |
| Ответы |
Re: PGPROC alignment (was Re: pgsql: Separate RecoveryConflictReasons from procsignals)
|
| Список | pgsql-hackers |
On 13.02.26 09:03, Bertrand Drouvot wrote: > +/* > + * If compiler understands aligned pragma, use it to align the struct at cache > + * line boundaries. This is just for performance, to (a) avoid false sharing > + * and (b) to make the multiplication / division to convert between PGPROC * > + * and ProcNumber be a little cheaper. > + */ > +#if defined(pg_attribute_aligned) > + pg_attribute_aligned(PG_CACHE_LINE_SIZE) > +#endif > +PGPROC; You can/should use C11 standard alignas(), so you don't need to worry about whether it's supported or not.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера