Wednesday, November 11, 2020

Re: Malloc options

On Nov 11, 2020 10:19 AM, Otto Moerbeek <otto@drijf.net> wrote:

On Wed, Nov 11, 2020 at 10:09:19AM -0600, edgar@pettijohn-web.com
wrote:

> I'm trying to compile a program that is using a MALLOC_OPTIONS of
"A"
> which doesn't exist. Reading the manual all of the options look
good to
> me so what would be the best? I'm going to go with "S" unless
otherwise
> instructed.
> Thanks,
> Edgar

A long time ago A existed, not it is the default: if an inconsistency
is detected, malloc aborts.

While developing and for "sensitive" programs S is best. ssh and sshd
use it.

If S is too slow, any subset of CFJ might provide a middle ground.
Not using any flags is also pretty safe already compared to other
malloc implementations.

-Otto

Thanks for the quick reply. I'll stick with "s" for now and if its
unbearably slow I'll try others.
Thanks
Edgar

No comments:

Post a Comment