diff options
author | bde <bde@FreeBSD.org> | 2000-06-14 17:11:47 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-06-14 17:11:47 +0000 |
commit | cc22f14b179a55f7686e798febd938bfef76c982 (patch) | |
tree | d6ac99ce66a0b4779f436220a7b5fff21535b50f /sys/kern/kern_malloc.c | |
parent | 3fa18b8916fe9b25c5597ac51644d51a66e57238 (diff) | |
download | FreeBSD-src-cc22f14b179a55f7686e798febd938bfef76c982.zip FreeBSD-src-cc22f14b179a55f7686e798febd938bfef76c982.tar.gz |
Removed support for generating inline code for MALLOC() and FREE()
in the dysfunctional !KMEMSTATS case. This hasn't compiled since
rev.1.31 of kern_malloc.c quietly removed the core of the support
for the !KMEMSTATS case. I fixed it to see if it was worth saving
and found that (as usual) inlining just wasted space and increased
complexity without significantly affecting time, at least for the
lmbench2 micro-benchmark on a Celeron. The space bloat was
surprisingly large - the text size increased from 1700K to 1840K
for a version with the entire malloc() family inlined.
Removed even older garbage (kmemxtob() and btokmemx() macros).
Attempt to deprecate MALLOC() and FREE(). Given current compilers
(gcc-2.x or C99), they don't do anything that (safe) function-like
macros or inline functions named malloc() and free() couldn't do.
Fixed missing casts of macro args in MALLOC() and FREE().
Diffstat (limited to 'sys/kern/kern_malloc.c')
0 files changed, 0 insertions, 0 deletions