Mail Archives: djgpp/2000/12/06/11:58:44
On Wed, 6 Dec 2000, Greg Holdridge wrote:
> > small chunk at a time. This will cause a massive memory fragmentation
> > in most malloc implementations (one sign of this fragmentation is that
> > the address goes up all the time, that is, memory allocated for the
>
> Ok silly me. I did some calculations. I allocate 16 bytes per stringentry
> (including 8 byte overhead right?) and immediately afterwards I allocate a
> buffer which i presume will use the memory at the end of the stringtable.
> Therefore the stringtable cannot expand (because of the calimed memory at
> its end) and so must move leaving a fragment which will never again hold the
> table.
Exactly. This fragmentation is the reason why your program bailed out so
early, after exhausting all available memory.
- Raw text -