malloc() in Dllist

Поиск
Список
Период
Сортировка
От Karel Zak
Тема malloc() in Dllist
Дата
Msg-id Pine.LNX.3.96.1000519124731.3432B-100000@ara.zf.jcu.cz
обсуждение исходный текст
Ответы Re: malloc() in Dllist  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,
I'm total confuse. I continue in query cache implementation and I want use
Dllist routines, but what I see --- it hardly use malloc/free. Why? With
this is a Dllist usage _very_ limited... (the catcache works with malloc? 
--- hmm interesting)
For my current situation I resolve it via some simple alloc function
changer for Dllist. But for future will probably good create specific
memory context that will based on malloc/free and in pg's sources use
_always_ and _only_ palloc in all routines. And if anyone want use
system malloc/free he can call MemoryContextSwitchTo( malloc_based_context );
Tom, assume you with some 'malloc_based_context' in your memory-management
proposal?
                    Karel




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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Re: Heaps of read() syscalls by the postmaster
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Performance (was: The New Slashdot Setup (includes MySql server))