From owner-cvs-lib Sat Oct 19 09:29:41 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA20976 for cvs-lib-outgoing; Sat, 19 Oct 1996 09From owner-cvs-lib Sun Oct 20 06:21:08 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA16940 for cvs-lib-outgoing; Sun, 20 Oct 1996 06:21:08 -0700 (PDT) Received: (from phk@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA16912; Sun, 20 Oct 1996 06:20:59 -0700 (PDT) Date: Sun, 20 Oct 1996 06:20:59 -0700 (PDT) From: Poul-Henning Kamp Message-Id: <199610201320.GAA16912@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/stdlib malloc.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk phk 96/10/20 06:20:58 Modified: lib/libc/stdlib malloc.c Log: malloc_pages should be static. Add progname to warning/error message layout. (joerg) Remove inline assembler, no speed impact, not need for the obfuscation (bde) Remove on the fly calculation of parameters, no longer critical. Make D & U flags valid even if we don't support them. Don't call imalloc until we're done initializing. Zap contents on free() if we have "Junk" set. [*] Various nitpicking. [*] As a sideeffect of this change, if you are worried about sensitive data lingering in memory, you can use the 'Junk' option now to make sure phkmalloc zaps memory when it is returned. add char * malloc_options = "J"; to your source. Obviously there is a performance impact. Revision Changes Path 1.16 +103 -187 src/lib/libc/stdlib/malloc.c