Re: Oversight in slab.c SlabContextCreate(), initial memory allocation size is not populated to context->mem_allocated
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Oversight in slab.c SlabContextCreate(), initial memory allocation size is not populated to context->mem_allocated |
| Дата | |
| Msg-id | 3903241.1659117310@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Oversight in slab.c SlabContextCreate(), initial memory allocation size is not populated to context->mem_allocated (Nathan Bossart <nathandbossart@gmail.com>) |
| Ответы |
Re: Oversight in slab.c SlabContextCreate(), initial memory allocation size is not populated to context->mem_allocated
|
| Список | pgsql-hackers |
Nathan Bossart <nathandbossart@gmail.com> writes:
> On Fri, Jul 29, 2022 at 12:43:45PM -0400, Reid Thompson wrote:
>> slab.c
>> does not in SlabContextCreate(). Is this intentional, it seems to be an
>> oversight to me.
> IIUC this is because the header is tracked separately from the first
> regular block, unlike aset.c.
That doesn't make it not an oversight, though. It looks like aset.c
thinks that mem_allocated includes all the context's overhead, whereas
this implementation doesn't seem to have that result. The comments
associated with mem_allocated are sufficiently vague that it's impossible
to tell which implementation is correct. Maybe we don't really care,
but ...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера