Memory management, palloc

From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Memory management, palloc
Date: 2001-03-08 11:28:50
Message-ID: Pine.LNX.4.21.0103082204580.9685-100000@linuxworld.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 2001-03-08 12:24:23 Re: Proposed WAL changes
Previous Message Sergio Pili 2001-03-08 11:14:38 Deactivate Rules