From owner-cvs-all@FreeBSD.ORG Sun Jul 3 00:57:02 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 70B0016A699; Sun, 3 Jul 2005 00:56:48 +0000 (GMT) (envelope-from ps@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2371244E06; Sun, 3 Jul 2005 00:35:33 +0000 (GMT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id 0551E6CD56; Sat, 2 Jul 2005 17:35:30 -0700 (PDT) X-Original-To: ps@mu.org Delivered-To: ps@mu.org Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by elvis.mu.org (Postfix) with ESMTP id C17A65C98B for ; Thu, 16 Dec 2004 08:14:32 -0800 (PST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 5C5C855566 for ; Thu, 16 Dec 2004 16:14:25 +0000 (GMT) (envelope-from owner-src-committers@FreeBSD.org) Received: by hub.freebsd.org (Postfix) id 7FD0416A543; Thu, 16 Dec 2004 16:14:20 +0000 (GMT) Delivered-To: ps@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 538) id 331DB16A4D0; Thu, 16 Dec 2004 16:14:18 +0000 (GMT) Delivered-To: src-committers@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 To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Sender: owner-src-committers@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on elvis.mu.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.1 X-Spam-Level: Cc: 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.5 List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 03 Jul 2005 00:57:02 -0000 X-Original-Date: Thu, 16 Dec 2004 16:14:16 +0000 (UTC) X-List-Received-Date: Sun, 03 Jul 2005 00:57:02 -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