summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-09-21 04:24:27 +0000
committerdyson <dyson@FreeBSD.org>1997-09-21 04:24:27 +0000
commite64b1984f97c6d987d7d36b61a3afe5028a08312 (patch)
tree325bcf17de3aad0383fb86548872026a7c3d2599 /sys/kern/kern_exec.c
parent1419fcb42b4e1e5a73f4574739f4c232fde357e2 (diff)
downloadFreeBSD-src-e64b1984f97c6d987d7d36b61a3afe5028a08312.zip
FreeBSD-src-e64b1984f97c6d987d7d36b61a3afe5028a08312.tar.gz
Change the M_NAMEI allocations to use the zone allocator. This change
plus the previous changes to use the zone allocator decrease the useage of malloc by half. The Zone allocator will be upgradeable to be able to use per CPU-pools, and has more intelligent usage of SPLs. Additionally, it has reasonable stats gathering capabilities, while making most calls inline.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index d1fbf72..29a53d1 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_exec.c,v 1.64 1997/08/04 05:39:24 davidg Exp $
+ * $Id: kern_exec.c,v 1.65 1997/09/02 20:05:38 bde Exp $
*/
#include <sys/param.h>
@@ -224,7 +224,7 @@ interpret:
}
/* free old vnode and name buffer */
vrele(ndp->ni_vp);
- FREE(ndp->ni_cnd.cn_pnbuf, M_NAMEI);
+ zfree(namei_zone, ndp->ni_cnd.cn_pnbuf);
/* set new name to that of the interpreter */
NDINIT(ndp, LOOKUP, LOCKLEAF | FOLLOW | SAVENAME,
UIO_SYSSPACE, imgp->interpreter_name, p);
@@ -356,7 +356,7 @@ interpret:
else if (imgp->image_header != NULL)
free((void *)imgp->image_header, M_TEMP);
vrele(ndp->ni_vp);
- FREE(ndp->ni_cnd.cn_pnbuf, M_NAMEI);
+ zfree(namei_zone, ndp->ni_cnd.cn_pnbuf);
return (0);
@@ -369,7 +369,7 @@ exec_fail_dealloc:
free((void *)imgp->image_header, M_TEMP);
if (ndp->ni_vp) {
vrele(ndp->ni_vp);
- FREE(ndp->ni_cnd.cn_pnbuf, M_NAMEI);
+ zfree(namei_zone, ndp->ni_cnd.cn_pnbuf);
}
exec_fail:
OpenPOWER on IntegriCloud