Re: pgsql: Generational memory allocator

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Generational memory allocator
Дата
Msg-id 18578.1511550792@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Generational memory allocator  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
I wrote:
> Tomas Vondra <tv@fuzzy.cz> writes:
>> Thanks. Do we need to do something similar to the other memory contexts? 
>> I see Slab does not do this at all (assuming it's not necessary), and 
>> AllocSet does this in a different way (which seems a bit strange).

> Hm ... the coding in AllocSet is ancient and I have to say that I don't
> like it as well as what I put into generation.c.

I take that back: the current coding of padding in AllocChunkData only
dates back to 7e3aa03b.  But I still don't like it, and will migrate
generation.c's version into aset.c.  And maybe improve the comments.

BTW, it appears that some of the confusion in generation.c can be
accounted for by not having entirely followed the changes in 7e3aa03b.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix bug in generation.c's valgrind support.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Mostly-cosmetic improvements in memory chunk header alignmentco