malloc() in Dllist

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: malloc() in Dllist
Date: 2000-05-19 11:08:24
Message-ID: Pine.LNX.3.96.1000519124731.3432B-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 2000-05-19 11:12:00 Re: Performance (was: The New Slashdot Setup (includes MySql server))
Previous Message Hiroshi Inoue 2000-05-19 10:51:38 RE: Performance (was: The New Slashdot Setup (includes MySql server))