freebsd-skq/lib/libc/stdlib
phk b965b1036f phkmalloc/2
"zero' and 'junk' options to help find and diagnose malloc abuse.
EXTRA_SANITY defaults "junk" to on.
Don't dump the internal state, unless EXTRA_SANITY.
General code cleanup.
Error messages cleaned up a bit, more checking earlier.
EXTRA_SANITY is default at this time (just in case).
Performance (without EXTRA_SANITY) is better, beats gnumalloc in
both time & space most of the time:

	# In-memory test.
	./malloc 50000000 2000 8192
	159.2u 1.5s 2:41.85 99.3% 5+7742k 0+0io 0pf+0w
	./gnumalloc 50000000 2000 8192
	272.6u 0.4s 4:35.01 99.3% 5+8533k 0+0io 0pf+0w

	# Swap-space test.
	./malloc 500000 14000 8192
	6.5u 4.1s 4:08.87 4.3% 5+49209k 0+0io 9772pf+0w
	./gnumalloc 500000 14000 8192
	16.2u 14.5s 15:36.14 3.2% 5+54100k 0+0io 47651pf+0w

	# Small items test.
	./malloc 20000000 20000 2048
	67.0u 0.3s 1:07.83 99.2% 5+18199k 0+0io 4pf+0w
	./gnumalloc 20000000 20000 2048
	66.2u 0.3s 1:07.03 99.3% 5+18107k 0+0io 0pf+0w

SANITY is not an option anymore. (!!)
1995-10-08 18:44:20 +00:00
..
abort.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
abort.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
abs.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
abs.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
alloca.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atexit.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atexit.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atexit.h BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atof.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atof.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atoi.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atoi.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atol.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atol.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
bsearch.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
bsearch.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
calloc.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
calloc.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
div.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
div.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
exit.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
exit.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
free.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getenv.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getenv.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getopt.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getopt.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getsubopt.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getsubopt.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
heapsort.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
labs.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
labs.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ldiv.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ldiv.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
Makefile.inc ``phkmalloc'' 1995-09-16 09:28:13 +00:00
malloc.3 phkmalloc/2 1995-10-08 18:44:20 +00:00
malloc.c phkmalloc/2 1995-10-08 18:44:20 +00:00
memory.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
merge.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
putenv.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
qsort.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
qsort.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
radixsort.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
radixsort.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rand.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
rand.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
random.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
random.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
realloc.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
realpath.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
realpath.c Don't attempt to lstat() the POSIXLY invalid empty pathname. 1995-02-25 16:06:07 +00:00
setenv.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
strhash.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
strtod.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
strtod.c Make strtod conforms manpage, use isspace to skip initial whitespaces 1995-08-01 22:20:16 +00:00
strtol.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
strtol.c strtol and atoi VERY broken in 8bit chars locale, i.e. if you pass something 1995-08-01 21:38:00 +00:00
strtoll.c Similar changes like in strtol, all this family is VERY broken 1995-08-01 22:04:57 +00:00
strtoq.c Similar changes like in strtol, all this family is VERY broken 1995-08-01 22:04:57 +00:00
strtoul.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
strtoul.c Similar changes like in strtol, all this family is VERY broken 1995-08-01 22:04:57 +00:00
strtoull.c Similar changes like in strtol, all this family is VERY broken 1995-08-01 22:04:57 +00:00
strtouq.c Similar changes like in strtol, all this family is VERY broken 1995-08-01 22:04:57 +00:00
system.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
system.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00