]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
malloc_pages should be static.
authorphk <phk@FreeBSD.org>
Sun, 20 Oct 1996 13:20:57 +0000 (13:20 +0000)
committerphk <phk@FreeBSD.org>
Sun, 20 Oct 1996 13:20:57 +0000 (13:20 +0000)
commitdcce35102d8055528548c41ea88a3be5bc0dc703
tree15285d1a59fdc4959729069a095ca3146dccbd3d
parent21bccdcd4a4275128017d9f3bc90a98c3fb3302d
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.
lib/libc/stdlib/malloc.c