(mALLOc, rEALLOc, cALLOc, mEMALIGn): When
authordrepper <drepper>
Tue, 15 Apr 1997 01:16:05 +0000 (01:16 +0000)
committerdrepper <drepper>
Tue, 15 Apr 1997 01:16:05 +0000 (01:16 +0000)
commitb5cbbc2dab10e3bebf4a803602cff6887d0404c2
treeeee99b8baa337e03595d80a25c7e22f0798f016f
parent445d1bab649bb4c9449bc9fd5804952d059506a4
(mALLOc, rEALLOc, cALLOc, mEMALIGn): When
failing to allocate a new chunk, also try the main_arena.  It may
be that we are only running out of mmapped regions, and other
arenas cannot be enlarged sufficiently.
(new_heap, malloc_extend_top): Handle top_pad more consistently,
i.e. only in new_heap().
(fREe): Small optimization.  Before returning,
add fast check whether the heap containing top can go away.
malloc/malloc.c