This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: trimming STL's memory pool
- From: jtc at acorntoolworks dot com (J.T. Conklin)
- To: Ben <b_plony at yahoo dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 02 Jun 2005 09:51:29 -0700
- Subject: Re: trimming STL's memory pool
- References: <20050602162036.89155.qmail@web30112.mail.mud.yahoo.com>
- Reply-to: jtc at acorntoolworks dot com
Ben <b_plony@yahoo.com> writes:
> malloc has its own problems. If some piece of data remains at the
> top of the data segment ( no free top-most memory ) all the freed
> memory beneath it cannot be returned to the system.
That depends on the malloc() implementation. Not all are implemented
in terms of sbrk().
--jtc
--
J.T. Conklin