From owner-cvs-all@FreeBSD.ORG Thu Dec 16 16:14:17 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B4BA16A4CE; Thu, 16 Dec 2004 16:14:17 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 189D443D62; Thu, 16 Dec 2004 16:14:17 +0000 (GMT) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBGGEGm1046081; Thu, 16 Dec 2004 16:14:16 GMT (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBGGEGtK046080; Thu, 16 Dec 2004 16:14:16 GMT (envelope-from harti) Message-Id: <200412161614.iBGGEGtK046080@repoman.freebsd.org> From: Hartmut Brandt Date: Thu, 16 Dec 2004 16:14:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/make Makefile arch.c compat.c cond.c dir.c for.c job.c lst.h main.c make.c make.h nonints.h parse.c suff.c targ.c var.c src/usr.bin/make/lst.lib lstConcat.c lstDestroy.c lstDupl.c lstInit.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 16:14:17 -0000 harti 2004-12-16 16:14:16 UTC FreeBSD src repository Modified files: usr.bin/make Makefile arch.c compat.c cond.c dir.c for.c job.c lst.h main.c make.c make.h nonints.h parse.c suff.c targ.c var.c usr.bin/make/lst.lib lstConcat.c lstDestroy.c lstDupl.c Removed files: usr.bin/make/lst.lib lstInit.c Log: Instead of dynamically allocating list heads allocated them statically now that their size is only two pointers. This eliminates a lot of calls to Lst_Init and from there to malloc together with many calls to Lst_Destroy (in places where the list is obviously empty). This also reduces the chance to leave a list uninitilized so we can remove more NULL pointer checks and probably eliminates a couple of memory leaks. Revision Changes Path 1.40 +1 -1 src/usr.bin/make/Makefile 1.42 +12 -16 src/usr.bin/make/arch.c 1.43 +10 -10 src/usr.bin/make/compat.c 1.33 +2 -2 src/usr.bin/make/cond.c 1.44 +21 -21 src/usr.bin/make/dir.c 1.28 +12 -9 src/usr.bin/make/for.c 1.69 +37 -35 src/usr.bin/make/job.c 1.26 +10 -4 src/usr.bin/make/lst.h 1.19 +1 -0 src/usr.bin/make/lst.lib/lstConcat.c 1.20 +3 -13 src/usr.bin/make/lst.lib/lstDestroy.c 1.20 +7 -23 src/usr.bin/make/lst.lib/lstDupl.c 1.15 +0 -76 src/usr.bin/make/lst.lib/lstInit.c (dead) 1.108 +50 -41 src/usr.bin/make/main.c 1.31 +35 -38 src/usr.bin/make/make.c 1.28 +24 -19 src/usr.bin/make/make.h 1.27 +2 -2 src/usr.bin/make/nonints.h 1.66 +90 -116 src/usr.bin/make/parse.c 1.38 +178 -187 src/usr.bin/make/suff.c 1.33 +25 -28 src/usr.bin/make/targ.c 1.57 +10 -10 src/usr.bin/make/var.c