pgsql: Mostly-cosmetic improvements in memory chunk header alignmentco
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Mostly-cosmetic improvements in memory chunk header alignmentco |
| Дата | |
| Msg-id | E1eIKvf-0005gJ-PC@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Mostly-cosmetic improvements in memory chunk header alignment coding. Add commentary about what we're doing and why. Apply the method used for padding in GenerationChunk to AllocChunkData, replacing the rather ad-hoc solution used in commit 7e3aa03b4. Reorder fields in GenerationChunk so that the padding calculation will work even if sizeof(size_t) is different from sizeof(void *) --- likely that will never happen, but we don't need the assumption if we do it like this. Improve static assertions about alignment. In passing, fix a couple of oversights in the "large chunk" path in GenerationAlloc(). Discussion: https://postgr.es/m/E1eHa4J-0006hI-Q8@gemulon.postgresql.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/f65d21b258085bdc8ef2cc282ab1ff12da9c595c Modified Files -------------- src/backend/utils/mmgr/aset.c | 25 ++++++++++++---- src/backend/utils/mmgr/generation.c | 58 +++++++++++++++++-------------------- src/backend/utils/mmgr/slab.c | 21 ++++++++++---- 3 files changed, 62 insertions(+), 42 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера