Re: Implementierung von malloc und free unter FreeBSD

From: Nicolas Rachinsky <list(at)rachinsky.de>
Date: Fri, 10 Sep 2004 17:49:38 +0200

* Bernd Walter <ticso(at)cicely12.cicely.de> [2004-09-10 17:12 +0200]:
> > Performanceeinbussen in Kauf nimmst, kannst du z.B. die "J"
> > Option benutzen, um zu garantieren, dass freigegebener Speicher
> > nocht doch noch alte Daten enthaelt. Genauer ist das in der
> > Manpage zu malloc() beschrieben.
>
> Eben - dort steht -J wirkt beim malloc und nicht beim free.

J wirkt auch bei free()&Co:

     J Each byte of new memory allocated by malloc(), realloc() or
             reallocf() as well as all memory returned by free(), realloc() or
             reallocf() will be initialized to 0xd0. This options also sets

Nicolas

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 10 Sep 2004 - 17:50:13 CEST

search this site