Memory management, palloc

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Memory management, palloc
Дата
Msg-id Pine.LNX.4.21.0103082204580.9685-100000@linuxworld.com.au
обсуждение исходный текст
Ответы Re: Memory management, palloc  (Karel Zak <zakkr@zf.jcu.cz>)
Re: Memory management, palloc  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi guys,

I've been looking through the memory management system today.

When a request is made for a memory memory chunk larger than
ALLOC_CHUNK_LIMIT, AllocSetAlloc() uses malloc() to give the request its
own block. The result is tested by AllocSetAlloc() to see if the memory
was allocated.

Irrespective of this, a chunk can be returned which has not had memory
allocated to it. There is no testing of the return status of
palloc() through out the code. 

Was/has this been addressed?

Thanks

Gavin



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

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: Performance monitor
Следующее
От: Sergio Pili
Дата:
Сообщение: Deactivate Rules