This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: extend dl-minimal malloc implementation


On Aug 16 2017, Zack Weinberg <zackw@panix.com> wrote:

> What I was trying to suggest, earlier, was that *before* either (a) or
> (b) we should go through the entire of ld.so and try to *remove* as
> many allocations as possible, at which point it might make sense not
> to have malloc in there at all - "just" send all remaining allocations
> directly to mmap (not sbrk; leave sbrk for the "real" malloc).  That
> may take rearchitecting - but so may just converting alloca to malloc,
> as you point out. I admit I have no idea whether this is even
> feasible.

You still need something on top of mmap, unless you want to waste a lot
of memory.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]