This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Memory pools
- To: "Boris V. Guzhov" <borg at int dot spb dot ru>
- Subject: Re: [ECOS] Memory pools
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Thu, 03 Aug 2000 17:03:56 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <000701bffd60$826e7cf0$7601a8c0@borg>
"Boris V. Guzhov" wrote:
> There is one question.
>
> I use the cyg_mempool_var_create() function.
> Is it possible to change the pool size after pool creating?
Nope, you can only free all the pointers using it, delete it and recreate
it.
FYI, there are some changes to malloc() to allow it to use all of available
memory (as defined by the memory layout), which should be appearing in anon
CVS shortly.
Perhaps once the new stuff is in (there's quite a lot of changes), you
should be able to extend the variable sized memory pool to support
resizing. It wouldn't be very difficult at all.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault