Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment

Поиск
Список
Период
Сортировка
От Maxim Orlov
Тема Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment
Дата
Msg-id CACG=ezYXoZFd-LVWsTTqdoGk6RnnmtsbJo+X+9TTgXQ+eT4x1Q@mail.gmail.com
обсуждение исходный текст
Ответ на Add palloc_aligned() to allow arbitrary power of 2 memory alignment  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment
Список pgsql-hackers
Hi!

Part of the work that Thomas mentions in [1], regarding Direct I/O,
has certain requirements that pointers must be page-aligned.

I've attached a patch which implements palloc_aligned() and
MemoryContextAllocAligned() ...
I've done a quick look and the patch is looks good to me.
Let's add tests for these functions, should we? If you think this is an overkill, feel free to trim tests for your taste.

--
Best regards,
Maxim Orlov.
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Add explicit casts in four places to simplehash.h
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUG] Logical replica crash if there was an error in a function.